java.lang.IllegalArgumentException: Cannot subclass final class class classesThatCauseTheBug.FinalClass

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 Hibernate JIRA by Paul Cantrell, 1 year ago
Cannot subclass final class class classesThatCauseTheBug.FinalClass
via Hibernate JIRA by Paul Cantrell, 1 year ago
Cannot subclass final class class classesThatCauseTheBug.FinalClass
via GitHub by johanhaleby
, 1 month ago
Cannot subclass final class class ...SessionManagerHelper
via wordpress.com by Unknown author, 2 years ago
Cannot subclass final class class com.unittest.FinalClass
java.lang.IllegalArgumentException: Cannot subclass final class class classesThatCauseTheBug.FinalClass
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:373)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:281)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:640)
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:94)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:42)
at org.hibernate.tuple.PojoTuplizer.buildProxyFactory(PojoTuplizer.java:144)
at org.hibernate.tuple.AbstractTuplizer.(AbstractTuplizer.java:83)
at org.hibernate.tuple.PojoTuplizer.(PojoTuplizer.java:54)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)
at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:218)
at org.hibernate.persister.entity.BasicEntityPersister.(BasicEntityPersister.java:400)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:104)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:211)
at undefined.Main.main(Main.java:10)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 4 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
7 more bugmates

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