javassist.CannotCompileException: by java.lang.VerifyError: Cannot inherit from final class

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via qiita.com by Unknown author, 1 year ago
by java.lang.VerifyError: Cannot inherit from final class
via Stack Overflow by kingpeter
, 2 years ago
by java.lang.ClassFormatError: Invalid length 99 in LocalVariableTable in class file com/Test
via jboss.org by Unknown author, 2 years ago
by java.lang.LinkageError: loader (instance of  org/apache/catalina/loader/WebappClassLoader): attempted  duplicate class definition for name: "ch/isn/dante/comserver/test/HelloWorldSessionBeanExecutable"
via Stack Overflow by Mock it
, 2 years ago
by java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClass Loader): attempted duplicate class definition for name: "com/symantec/mobius/aggregator/submission/SubmissionFactory"
via root.cz by Unknown author, 1 year ago
by java.lang.SecurityException: Prohibited package name: java.util
via https://bugzilla.redhat.com/bugzilla/ by Myee Riri, 1 year ago
by java.lang.SecurityException: class "org.rhq.enterprise.server.auth.SubjectManagerRemoteSimple"'s signer information does not match signer information of other classes in the same package
javassist.CannotCompileException: by java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at javassist.ClassPool.toClass2(ClassPool.java:1112)
at javassist.ClassPool.toClass(ClassPool.java:1093)
at javassist.ClassPool.toClass(ClassPool.java:1042)
at javassist.ClassPool.toClass(ClassPool.java:1000)
at javassist.CtClass.toClass(CtClass.java:1224)
at javassist.test.ExtendSample.main(ExtendSample.java:11)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 5 months ago
6 times, 5 months ago
5 times, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
52 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.