java.lang.LinkageError and java.lang.IllegalStateException when deploy EAR file on Websphere 9 with java 8

56 views
Skip to first unread message

vinaystack...@gmail.com

unread,
Oct 11, 2017, 2:24:31 AM10/11/17
to
When i am deploying .EAR file on Websphere 9 with java 8 , i am getting linkage error , can not compile exceptions and IllegalStateException . The application was working fine on websphere 8 with java 6 .

The complete stack trace :

Caused by: java.lang.IllegalStateException: javassist.CannotCompileException: by java.lang.LinkageError: org.springframework.aop.framework.ProxyCreatorSupport
at org.springframework.aop.framework.JavassistApplicationContext.<clinit>(JavassistApplicationContext.java:26)
... 114 more
Caused by: javassist.CannotCompileException: by java.lang.LinkageError: org.springframework.aop.framework.ProxyCreatorSupport
at javassist.ClassPool.toClass(ClassPool.java:1120)
at javassist.ClassPool.toClass(ClassPool.java:1063)
at javassist.ClassPool.toClass(ClassPool.java:1021)
at javassist.CtClass.toClass(CtClass.java:1259)
at org.springframework.aop.framework.JavassistApplicationContext.<clinit>(JavassistApplicationContext.java:24)
... 114 more
Caused by: java.lang.LinkageError: org.springframework.aop.framework.ProxyCreatorSupport
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:346)
at java.lang.ClassLoader.defineClass(ClassLoader.java:283)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at javassist.ClassPool.toClass2(ClassPool.java:1133)
at javassist.ClassPool.toClass(ClassPool.java:1114)
... 118 more

I am using javassit 3.21.0-GA jar with spring 4.1.0.RELEASE for java 8 .

<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.21.0-GA</version>
</dependency>

I have tried following methods to solve this error

1. Change single class loader
2. Change parent last methods on server

Any suggestion for how to solve this error ? I have tried to post questions on IBM and stack overflow . still facing same exceptions .
Reply all
Reply to author
Forward
0 new messages