cancel
Showing results for 
Search instead for 
Did you mean: 

Null pointer exception

Former Member
0 Kudos

hi

can any one give me detail view on when the Null pointer exception will raise in mapping

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Null pointer exception normally occures if in mapping any of the reference link trying to refer the memory location which is not exists ie.e no values store at that memorry location. the Null pointer exception can be generated. Refer below example as well as the links I had attached to see various kinds of null pointer excpetions in mapping.

If you will be using the Dynamic file name related code like below and try to test the maping with test Tab you will get the Null pointer exception in mapping, while using the context object mapping. If you will be using the Java Mapping then there are chance to get the Null pointer Exception in it.

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(

“http://sap.com/xi/XI/System/File”,

“FileName”);

String filename = conf.get(key);

refer

Thanks

Swarup

Former Member
0 Kudos

when u use a UDF Input (of type array)>UDF>Output and the input you pass is null