org.hibernate.AssertionFailure: null id in persisttest.Publication entry (don't flush the Session after an exception occurs)

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 visual-paradigm.com by Unknown author, 1 year ago
null id in persisttest.Publication entry (don't flush the Session after an exception occurs)
via Visual-paradigm by Michael, 1 year ago
null id in persisttest.Publication entry (don't flush the Session after an exception occurs)
via Coderanch by Kavita Shivani, 11 months ago
null id in com.postsales.domain.model.Sales entry (don't flush the Session after an exception occurs)
via Stack Overflow by forhas
, 2 years ago
null id in me.comocomo.server.dao.objectModel.club.register.BrandManager entry (don't flush the Session after an exception occurs)
via Coderanch by ashish kulkarni, 11 months ago
null id in com.tauck.model.Airport entry (don't flush the Session after an exception occurs)
via Stack Overflow by ses
, 2 years ago
null id in models.Software entry (don't flush the Session after an exception occurs)
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.orm.PersistentTransaction.commit(PersistentTransaction.java:34)
at ormsamples.CreateTestData.createTestData(CreateTestData.java:18)
at ormsamples.CreateTestData.main(CreateTestData.java:30)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
9 times, 4 months ago
4 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

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