• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate 3 AssertionFailure null id in entry

 
Srip Kumarr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We some issues in usage of hibernate 3. I always have an issue with the below error.

Could some one help me in understanding the root cause.

We are opening the session as follows:
s = sessionFactory.openSession();
Loading as follows:
hbnSession.load(objDbObject, new Integer (objectId)) ;

Thanks in advance.

ERROR org.hibernate.AssertionFailure - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)
at org.hibernate.impl.SessionImpl.checkId(SessionImpl.java:1204)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic