cancel
Showing results for 
Search instead for 
Did you mean: 

What does NullPointerException error mean in XML to IDoc scenario ?

dhairya
Explorer
0 Kudos

Hi All,

Here we have an issue where we have XML to IDoc scenario (Inbound). The flow to the scenario is Third party to PI to ECC.

We build this interface and while testing the connectivity we triggered a message from SOAP UI and it is giving the following error,

MappingException: Mapping failed, NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Payload.getContentType() of a null object returned from com.sap.engine.interfaces.messaging.api.Message.getMainPayload()

Not able to understand what exactly is going wrong can you please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

manoj_khavatkopp
Active Contributor
0 Kudos

Dhariya ,

Any chances that you are using IDOC External definition by changing its occurrences or something? I remember I had a similar issue when I was using ED of IDOC. If this is same in your case then do note it is recommended to use the IDOC directly don't use ED.

Br,

Manoj

former_member190293
Active Contributor
0 Kudos

Hi Dhairya!

First check your main payload in Message monitor to be the valid XML message.

Regards, Evgeniy.