cancel
Showing results for 
Search instead for 
Did you mean: 

regarding mapping trace

Former Member
0 Kudos

MappingTrace trace;

trace.addInfo("mapping started");

This is the code that we are using to trace the mapping in XI,

but on execution of the code we are getting java.lang.NullPointerException.

can you please provide us with a solution to it.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Verify if you are notsending the blank values to the udf in which this code was added.

refer below code

MappingTrace trace;

//First we get a handle to the trace object

trace = container.getTrace();

//Here is how to write to the trace

//Make sure your XI RUNTIME TRACE_LEVEL is set to 2 or 3

trace.addInfo("mapping started");

//Here is how to write a warning

//But make sure your RUNTIME TRACE_LEVEL is 1, 2 or 3

trace.addWarning("Exception exception caught.");

Go to Trace Level section

http://help.sap.com/saphelp_nw04/helpdata/en/3b/c18c4037fba62be10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw70/helpdata/en/3b/c18c4037fba62be10000000a1550b0/content.htm

http://help.sap.com/saphelp_nw70/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm

Thanks

Swarup