org.hibernate.AssertionFailure

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • org.hibernate.AssertionFailure
    via by Unknown author,
  • org.hibernate.AssertionFailure
    via by Michael,
  • org.hibernate.AssertionFailure
    via Stack Overflow by sesmic
    ,
    • org.hibernate.AssertionFailure: null id in persisttest.Publication entry (don't flush the Session after an exception occurs) at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48) at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150) at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106) at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195) at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1011) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at org.orm.PersistentTransaction.commit(PersistentTransaction.java:34) at ormsamples.CreateTestData.createTestData(CreateTestData.java:18) at ormsamples.CreateTestData.main(CreateTestData.java:30)[/code]

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    musketyrmusketyr
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,