Skip to Content
0
Jun 16, 2009 at 02:43 PM

DynamicConfiguration throws NullPointerException

53 Views

Hi guys.

I'm developing a UDF in PI 7.10 and I'm trying to use the DynamicConfiguration object.

Just for start, I copyed&pasted the example in SAP Library: [http://help.sap.com/saphelp_nwpi711/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm]

Unfortunately it fails on this statement

String valueOld = conf.get(key);

with

Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_DataA_to_DataB_ method writeDC[Constant, com.sap.aii.mappingtool.tf7.rt.Context@1ed0bdac] com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_DataA_to_DataB_ method writeDC[Constant, com.sap.aii.mappingtool.tf7.rt.Context@1ed0bdac]

Seems that the statement

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

has not gived a DynamicConfiguration instance but this is null.

I already checked that XI ADAPTER FRAMEWORK 7.10 is present on my PI.

Some idea?

Thanks so much.

Nicola