cancel
Showing results for 
Search instead for 
Did you mean: 

soap fault: java.lang.NullPointerException

Former Member
0 Kudos

Dear guru,

I am getting the below error in PI message monitoring. In ABAP stack it's processed successfully. It is Proxy to SOAP web service scenario. I am using SOAP receiver adapter.

SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: Response message contains an errorXIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: java.lang.NullPointerException


I was looking for how to solve it in SCN but I can't get the solution.


Thanks.


Regards,

May

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member183816
Active Participant
0 Kudos

Hi July,

Can you check for mandatory fields (1..1) in your webservice structure (Target of your mapping).Your webservice is expecting one of the mandatory field in target structure at their server, which you are not sending, that's why it's throwing this error.

Thanks,

Ambuj

Harish
Active Contributor
0 Kudos

hi,

The the error is because the response from webservice is blank or having special char and the adapter is unable to parse it.

Plesae test the webservice with external tools like SOAPUI and check if it is providing the response.

regards,

Harish

Former Member
0 Kudos

Hello,

I am getting the same value with request message in response when testing in SOAP UI with mock service.

If I got the response, is that correct ?

Thanks!

former_member186851
Active Contributor
0 Kudos


yes,you should get the response.

Former Member
0 Kudos

Hello,

This error is gone now after IT Team fixed the in web service. I can browse the URL with blank page. They tested with SOAP UI. It's fine. But from PI, I got the below error:

Failed to call the endpoint: Error in call over HTTP: HTTP 0 null

Can anybody knows what is wrong ?

Thanks.

former_member186851
Active Contributor
0 Kudos

Hello May,

check the network settings,Might be some firewall is blocking the call.

former_member186851
Active Contributor
0 Kudos

Hello May,

Is it a sync scenario?

your getting a error response which cant be handled in response mapping, that's why this error.

Former Member
0 Kudos

Hi,

It's asyn only.

Harish
Active Contributor
0 Kudos

Hi,

do you use the option "Do Not used soap envelope" in receive soap channel? If not then please select that option and try once.

Former Member
0 Kudos

Hi Harish,

When I try with "Do not use SOAP Envelope", I got the  internal server error.

SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error


Thanks.

Harish
Active Contributor
0 Kudos

Hi,

the problem may be your request message. did you tried the same message with SoaoUI?

Please refer the inaki's reply on below threat

SOAP: response message contains an error XIAdap... | SCN

1. The endpoint is failing to dealing with your message because:

     - You format message is not the format message that is expected. This could be because is expecting a deteminated XSD, determinated SOAP or no-SOAP tags, etc.

     - The endpoint is failing for another reason (weird)

2. You could put this in the module tab to deal with the SOAP tags:

former_member186851
Active Contributor
0 Kudos

Hello May,

Then check the payload by testing using SOAP UI.

former_member186851
Active Contributor
0 Kudos

In addition ,You can refer the below link to ignore Soap Response.

Former Member
0 Kudos

Hi Raghuraman,

I am new in it. I used wsdl file for inbound scenario to test in SOAP UI.

It's outbound from ECC system. Could you please tell me how to test with SOAP UI for this case ?

Former Member
0 Kudos

Hi,

Shall I use my own wsdl file from my side for testing ?

Because when I was testing with my own wsdl file (not external system wsdl), I am getting error too.

  <SAP:Category>XIProtocol</SAP:Category>

               <SAP:Code area="PARSING">GENERAL</SAP:Code>

               <SAP:Stack>java.lang.NullPointerException

  at java.util.Hashtable.put(Hashtable.java:394)

If I am wrong, please correct me.

Thanks.

former_member186851
Active Contributor
0 Kudos

Hello Mary,

Create a dummy Soap sender channel and assign it to ICO.

Then import the WSDL and configure the endpoint in soap UI.

Refer the below links for testing