Skip to Content
2
Former Member
Oct 22, 2012 at 05:16 PM

Is ResultList not compatible with java.util.List?

313 Views

Hi,

We are in the process of migrating some interfaces to new PI7.3 from PI7.0. One of the interface has a UDF code as below and when migrated it is not working saying List is NULL

List list = (List) result;String temp1 = list .get(0).toString();String temp2 = list .get(1).toString();

Error:

Runtime exception when processing target-field mapping /COND_A04/IDOC/E1KOMG/VAKEY; root message: Exception:[java.lang.ClassCastException: class com.sap.aii.mappingtool.tf7.rt.ResultListImpl:library:com.sap.xi.mapping.tool.lib@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@37e15160@alive incompatible with interface java.util.List:null] in class com.sap.xi.tf.XXXXXXXXXXXXXXXXXXXXXXXXXXX

Has any one faced this issue before? What is the alternate APIs/methods I can use??

Regards,

Praveen Gujjeti