on 08-07-2012 3:53 PM
Hi,
We had migrated some scenarious from XI to PI which involves AS2 (EDI adapter). Although we dont have any issues in communication, we had mapping failures which uses the following AS2 variables.
com.aedaptive.xi.mappingvariables.MappingVariablesXI;com.aedaptive.xi.mappingvariables.MappingVariablesXIFactory;
The relevant UDF is the following
String value = "";
try {
MappingVariablesXIFactory c = new MappingVariablesXIFactory();
MappingVariablesXI counterbean =
c.initializeMappingVariablesXI();
value =counterbean.nextCounter("<MAPPING_VARIABLE_NAME>");
} catch(Exception ex) {
throw new RuntimeException(ex);
} finally {
return value;
}
Although this works fine in XI environment, it is not working in PI environment. It gives the following error message.
Note: /usr/sap/DI1/DVEBMGS05/j2ee/cluster/server0/./temp/classpath_resolver/Map25e9fbfddc8711e1cab3000003600b82/source/com/sap/xi/tf/_mm_PRICAT_PRICAT02_2_PRICAT_UN_D96A_LSC_.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
Any help would be appreciated.
Regards
Anandh.B
it looks some of the Jar files not available in new PI System, if you are using third party Jar files /external Jars then deploy it on new Server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try using the following in the default UDF "init" of message mapping.
retainlastValueofPreviousContext= true;
Thanks,
Sudhansu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Couple of suggestions.
What version PI do you use now? PI 7.1 uses jdk 1.5 and above whereas XI 3.0 uses 1.4. So there is sure possibility that some of your third party jars that are specific to the new jdk version. If so, you need to update your jars accordingly and use it. Also you might want to check your mapping program to see all your import statements classes are available in your PI server jars to execute the UDF. This error does not show that class not found exception and the error is your using jar or class is deprecated one.
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.