on 02-20-2013 1:33 PM
Hi,
We have a Java mapping code which is referenced in the UDF's written in graphical mapping. This package has been imported while writing the UDF. The Java code compiles successfully and gets activated fine in PI(Imported Archive). However when the message mapping with UDF referencing this Java mapping is being activated i throws below error:
Source text of object Message Mapping: A_to_B | http://sap.net/erp/trade has syntax errors:
Java Area import, Line 7:
package sap.net.erp.trade does not exist import sap.net.erp.trade.GenerateItem; ^
^ Note: /usr/sap/XX4/DVEBMGS02/j2ee/cluster/server1/./temp/classpath_resolver/Map3f1d45f37b5f11e292ed0000014ad9db/source/com/sap/xi/tf/_A_to_B_.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Any help is appreciated.
Thanks,
Sriram
Hello Sriram,
The UDF is unable to find the JAVA mapping path, kindly ensure that the JAVA mapping archive is added under Message mapping > Functions > Archives Used.
Additionally the error points that you are using a deprecated API, you may want to look at that as well.
Regards,
Gautam Purohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gautam. The earlier error is resolved. However now there seems to be another error as below:
getTradeType(com.sap.aii.mappingtool.tf3.rt.Container) in sap.net.comm.emt.trade.GenerateItem cannnot be applied to (com.sap.aii.mappingtool.tf7.rt.Container) String result = c.getTradeType(container).
Is it to do with the package import ebing incompatible with PI 7.1?
Regards,
Sriram
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.