Hi Guys, i'm facing a "compilation error" in websphere both 8.0 and 8.5.5 with IBM jdk 1.6.
I have made some new mapping using the "nested mapping" so i'm switched from jmapper 1.4.2 to 1.6.0.1.
Everything seems ok with tomcat but when i have installed the ear inside websphere i have received an exception
coming from a call to a native method of the ibm jvm from the Classloader class.
The final, and important part, of the stacktrace follows:
Caused by: javassist.CannotCompileException: by java.lang.ClassFormatError: JVMCFRE045 indice del pool di costanti non compreso nell'intervallo; classe=itmydestinationclassitmysourceclass, offset=48931
at javassist.ClassPool.toClass(ClassPool.java:1085)
at javassist.ClassPool.toClass(ClassPool.java:1028)
at javassist.ClassPool.toClass(ClassPool.java:986)
at javassist.CtClass.toClass(CtClass.java:1110)
at com.googlecode.jmapper.generation.JavassistGenerator.generate(JavassistGenerator.java:78)
at com.googlecode.jmapper.generation.MapperGenerator.generateMapperClass(MapperGenerator.java:76)
at com.googlecode.jmapper.generation.MapperBuilder.generate(MapperBuilder.java:88)
at com.googlecode.jmapper.JMapper.createMapper(JMapper.java:431)
at com.googlecode.jmapper.JMapper.<init>(JMapper.java:413)
... 88 more
Caused by: java.lang.ClassFormatError: JVMCFRE045 indice del pool di costanti non compreso nell'intervallo; classe=itmydestinationclassitmysourceclass, offset=48931
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:264)
at java.lang.ClassLoader.defineClass(ClassLoader.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at javassist.ClassPool.toClass2(ClassPool.java:1098)
at javassist.ClassPool.toClass(ClassPool.java:1079)
... 96 more
I have tried to compile with ibm jdk and run tomcat with ibm jdk but the problem is not present with tomcat.
I have also tried to use jmapper 1.6.0/1.5.0, guava 18.0(suggested from reflections pom)/15.0.cdi, javassist 3.17.1,3.19,3.20.
Nothing works i always receive the same error.
Any suggest it's wellcome.
Thank you in advance, Patrizio