cancel
Showing results for 
Search instead for 
Did you mean: 

Migration Issues - UDF

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try using the following in the default UDF "init" of message mapping.

retainlastValueofPreviousContext= true;

Thanks,

Sudhansu

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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.