Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate 3 AssertionFailure null id in entry  RSS feed

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

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(
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!