Hi, I'm in the end of converting my project from Hibernate2 to Hibernate3.
I can login and browse records, but as soon as I try to save/persist something I get an exception.
To me it sounds like a classloader/bytecode enhancer issue.
Can anyone point me in a direction where to investigate?
Hibernate version:
From the hibernate3.jar manifest:
Specification-Version: 4.0.4.GA
Implementation-Vendor-Id: http://www.jboss.org/
Hibernate-Version: 3.2.0.cr2
Implementation-Version: 3.2.0.cr2
Code between sessionFactory.openSession() and session.close():
Home made web framework ;-) Opening session at HTTP GET, closing it after a redirect. Maybe the problem is here, because the session disconnect/reconnect has changed between h2 and h3.
I'm right now investigating this, but could need all the help I can get.
Full stack trace of any exception that occurs:
Code:
10:16:03,415 ERROR [STDERR] Caused by: org.hibernate.MappingException: Unknown e
ntity: com.xyz.activity.ActivityType_$$_javassist_57
10:16:03,415 ERROR [STDERR] at org.hibernate.impl.SessionFactoryImpl.getEnti
tyPersister(SessionFactoryImpl.java:547)
10:16:03,431 ERROR [STDERR] at org.hibernate.event.def.DefaultLoadEventListe
ner.onLoad(DefaultLoadEventListener.java:65)
10:16:03,431 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireLoad(Sessi
onImpl.java:871)
10:16:03,431 ERROR [STDERR] at org.hibernate.impl.SessionImpl.load(SessionIm
pl.java:788)
10:16:03,431 ERROR [STDERR] at org.hibernate.impl.SessionImpl.load(SessionIm
pl.java:781)
Thanks.
/Goran