on 05-26-2008 8:08 PM
hi
can any one give me detail view on when the Null pointer exception will raise in mapping
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.