The CreatorCon Call for Content is officially open! Get started here.

"java.lang.NullPointerException" error while invoking SOAP API through script include

arjunalagar
Kilo Contributor

Hi All,

I am trying to invoke a SOAP message through script include. It is working fine for most of the times, but few times it is throwing an exception error like "java.lang.NullPointerException". Since i have written my script within the try catch block, it goes to the catch block whenever this exception occurs. Can someone please tell me what could be the reason for this issue.

Regards,

Arjun A

7 REPLIES 7

Hi Chandu,



Thanks for the response. I went through the article, but it was specifically for Web Import Sets. I am trying to connect to a third party tool to submit a request. But sometimes i receive these kind of responses.



Not sure what could be the reason behind it.


Ujjawal Vishnoi
Mega Sage

Hi Arjun,



I believe, you might be calling your script include in business rule. If yes you can change the type to async and retry.



Please do let me know in case you still face any issue.



Hope this helps.



Regards


Ujjawal


Hi Ujjawal,



This integration is for catalogue items. So i have called the script include in the workflow. Within the script include i am calling the SOAP message.