on 09-16-2014 4:40 AM
Hi,
I am getting a null pointer exception in dynamic configuration
Below is the screenshot of input queue and error.
Code:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http:/" + "/sap.com/xi/XI/System/File","FileName");
conf.put(key,strCompCodeDesc);
return strCompCodeDesc;
Please guide.
Thanks & Regards,
Nida
Add error handling in your UDF for when you want to test this mapping directly (but this dynamic parameter doesn't exist because you aren't testing end-to-end):
try{
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http:/" + "/sap.com/xi/XI/System/File","FileName");
conf.put(key,strCompCodeDesc);
return strCompCodeDesc;
}
catch(Exception ex){}
return strCompCodeDesc;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
10 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.