on 07-22-2009 6:49 PM
hi Experts,
I am getting following error while using JAVA Mapping in PI 7.1.
LinkageError at JavaMapping.load(): Could not load class: convertXML
java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:654) at java.lang.ClassLoader.defineClass(ClassLoader.java:499) at com.sap.aii.ib.server.mapping.execution.MappingLoader.findClass(MappingLoader.java:184) at java.lang.ClassLoader.loadClass(ClassLoader.java:340) at java.lang.ClassLoader.loadClass(ClassLoader.java:285) at com.sap.aii.ib.server.mapping.execution.JavaMapping.load(JavaMapping.java:143) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:67)
I had created Java Class(JAR file) using NWDS 7.1 SP08.
Please help if possible!
Thanks,
Mayank
Make sure, that your NWDS is assigned to JDK 1.5
JDK 1.6 is not supported by PI 7.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Stefan,
I changed Java Version to 5.0, now i am getting following error:
LinkageError when loading class convertXML; details: java.lang.NoClassDefFoundError.
LinkageError at JavaMapping.load(): Could not load class: convertXML
java.lang.NoClassDefFoundError: convertXML (wrong name: Mapping/convertXML) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:654) at java.lang.ClassLoader.defineClass(ClassLoader.java:499) at com.sap.aii.ib.server.mapping.execution.MappingLoader.findClass(MappingLoader.java:184)
I had created my class convertXML in a package named as Mapping.
Thanks,
Mayank
Hi,
If you are using a package. You should place the class file in folder with name of package.
If your package is com.sap.mapping
You should use folder structure like COM/SAP/mapping.
In your case u create folder with name Mapping, place class file inside that and convert the folder to jar file.
Thanks
inder
Hi Gupta,
After you changed your java version , please make sure that you have recompiled the java code using JDK1.5 compiler and reimported your jar file into IR again.
-thanks
sowmya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
it happens because of the java program compiled in an not compatiable JDK/JRE version.
~SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.