Skip to Content
0
Former Member
Jun 29, 2009 at 08:16 PM

Java mapping error java.lang.NullPointerException

76 Views

Hi All,

I have an IDOC to IDOC Scenario and there are two mappings to be done. I have created the first one in Graphical mapping and Second in Java mapping. (The requirement needs to use 2 mappings.. Do not want to go into more details on why). both the mappings have input as the IDOC and output as IDOC.

I have created a Interface mapping and selected the Graphical Mapping as first program and then Java mapping as the second. when i try to execute (test mode and runtime) this it gives me a "java.lang.NullPointerException". Below is the trace I have logged in the Java mapping.

**** START APPLICATION TRACE ****

java.lang.NullPointerException

**** END APPLICATION TRACE ****

I have tried to change the order of the mapping with Java mapping first and then graphical mapping and it works!! (But this case does not satisfy the business reason), I have tried testing with only the Java mapping it works, only graphical mapping works.. but the combination fails.

Do we need any additional changes in terms of variables when we are using Java mapping as second step in interface mapping?

Thanks

Suman

Edited by: Suman Jaltar on Jun 29, 2009 3:17 PM