cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Receiver Adapter Error in XI RWB - java.lang.NULLPointerException

Former Member
0 Kudos

Hi,

We have a asynchronous scenario in SAP-XI, where we are sending the PO data from SRM to third party (Hubspan / TNT). Proxy is being used at Sender side and SOAP Adapter is used for Receiver Communication Channel.

u2022SRM is sending around 1000 messages through background job and around 995 or 996 messages are being processed successfully and showing the proper XML payload as well in RWB. But 4-5 messages are getting failed in XI RWB for u2018java.lang.NullPointerExceptionu2019. For these failed messages we are not able to see the XML payload as well in XI RWB while these messages are showing successful status in MONI in SRM and XI and we are able to see the payload as well in MONI. The webservice is restarting and trying to send the payload three times in RWB, but it is getting the same Nullexception error.

04.11.2011 16:45:49.715 Success Delivering to channel: CC_B2B_HUBSPAN_RCV

04.11.2011 16:45:49.715 Success MP: Entering module processor

04.11.2011 16:45:49.715 Success MP: Processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean

04.11.2011 16:45:49.716 Success SOAP: request message entering the adapter with user J2EE_GUEST

04.11.2011 16:45:49.716 Success SOAP: Target url: https://connect.hubspan.net/mh/server/tp=NMHG/ssid=DAA6F0E9AC1000BD03A41B363BBFD676

04.11.2011 16:45:49.999 Error SOAP: call failed: java.lang.NullPointerException

04.11.2011 16:45:49.999 Success SOAP: sending a delivery error ack ...

04.11.2011 16:45:49.999 Success SOAP: sent a delivery error ack

04.11.2011 16:45:49.999 Error SOAP: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException

04.11.2011 16:45:49.999 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException

04.11.2011 16:45:50.000 Error Exception caught by adapter framework: null

04.11.2011 16:45:50.022 Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException.

04.11.2011 16:45:50.037 Success The message status set to WAIT.

u2022If we are resending the failed message from XI RWB, it is getting failed again with the same error. On the other hand if we are initiating the message again from SRM to Hubspan for the same PO, it is getting processed successfully in RWB but still not showing XML payload in RWB.

u2022If we are getting the payload from XI MONI for the failed message and doing a test with component monitoring in RWB, it is working fine.

Please help me to solve this issue.

Thanks

Sumit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

to check the folllowing reasons,

1. URL is incorrect.

2. URL is perfect but target server is down or unavailable.

3. URL is correct, Server is up..but there is a firewall problem/a network problem.

reagrds,

ganesh.

Former Member
0 Kudos

Hi Ganesh,

We are facing the problem for only some PO's out of 1000 PO's. 4 0r 5 PO's are failing regularly.

URL is correct because if we are sending the same PO from SRM agian, then it is processing successfully.

Server or Firewall problem should not be there because if this is the case then it should be processed in another tries as it is trying 3 times automatically and even if we are resending from RWB, it is failing,

Thanks.

Former Member
0 Kudos

Hi,

can you check which PO's are not posted into target, ithink some mandatary filed values are missing or that PO's containg null values. you will ask to SRM team and check the data.

reagrds,

ganesh.

Former Member
0 Kudos

Hi Ganesh,

I took the payload from XI Moni and tested it in Interface / Message mapping in Integration Repository. It got executed successfully. It means there is no issue with teh payload.

Please suggest if need to check anything else.

Thanks

Sumit

Former Member
0 Kudos

Hi,

I took the payload from XI Moni and tested it in Interface / Message mapping in Integration Repository. It got executed successfully. It means there is no issue with teh payload.

you took payload form and tested mapping that is for testing purpose, that is not end to end implementation. can you check the field values, because java.lang.NULLPointerException occured when the filed valuse are missing.check step by step what are PO's are failed.

regards,

ganesh.

Former Member
0 Kudos

Hi Sumit,

From my experience, when you transfer SAP POs through PI to external webservice, there should be some validation happens at the webservice layer of the target system before the web service passes the original information to their application layer. The validation can be anything like checking the Vendor address, Checking the correctness of the order ...etc etc . So i would suggest to ask your external web service folks to check if they have any validation in place before they pass the data to their application layer.

As you said only some POs/XMLs are failing, i strongly feel that this could be the issue.

Please note if you receive response code other than 200 from webservice, SOAP adapter treats that as error and send the same message back to AE.

Normally webservices won't send 200 code for any validation error

PS: you can still try to use XMLSpy to post the failed message to the web service to know the exact cause.