Skip to Content
0

What does NullPointerException error mean in XML to IDoc scenario ?

Dec 01, 2017 at 01:23 PM

56

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Evgeniy Kolmakov Dec 01, 2017 at 03:41 PM
0

Hi Dhairya!

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

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded
Manoj K Dec 02, 2017 at 08:01 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded