"java.lang.NullPointerException" error while invoking SOAP API through script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 10:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 10:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 10:52 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 10:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 11:05 AM
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.