org.hibernate.AssertionFailure: null id in com.comp123.db.domain.tables.ReportEntry 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 Coderanch by Peter Petrov, 1 year ago
null id in com.comp123.db.domain.tables.ReportEntry entry (don't flush the Session after an exception occurs)
via coderanch.com by Unknown author, 1 year ago
null id in com.comp123.db.domain.tables.ReportEntry entry (don't flush the Session after an exception occurs)
via coderanch.com by Unknown author, 1 year ago
null id in com.comp123.db.domain.tables.ReportEntry entry (don't flush the Session after an exception occurs)
via Stack Overflow by Derek
, 2 years ago
null id in RoleDuty 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)
via Google Groups by Raymond Camden, 2 years ago
null id in tag entry (don't flush the Session after an exception occurs)
org.hibernate.AssertionFailure: null id in com.comp123.db.domain.tables.ReportEntry entry (don't flush the Session after an exception occurs)
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:55)
at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:164)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:120)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
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:1000)
at sun.reflect.GeneratedMethodAccessor1460.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at undefined.$Proxy57.flush(Unknown Source)
at com.comp123.db.dao.common.HibernateDao$4.doInHibernate(HibernateDao.java:126)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374)
at com.comp123.db.dao.common.HibernateDao.makePersistent(HibernateDao.java:123)
at com.comp123.db.dao.tables.EmailReportLogHibernateDao.addEmailReportLog(EmailReportLogHibernateDao.java:41)
at com.comp123.presentation.emailnotification.EmailNotificationJob.insertActionLog(EmailNotificationJob.java:117)
at com.comp123.presentation.emailnotification.EmailNotificationJob.sendEmailReport(EmailNotificationJob.java:97)
at com.comp123.presentation.emailnotification.EmailNotificationJob.access$500(EmailNotificationJob.java:24)
at com.comp123.presentation.emailnotification.EmailNotificationJob$1.doInTransactionWithoutResult(EmailNotificationJob.java:62)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
at com.comp123.presentation.emailnotification.EmailNotificationJob.excuteMailSendJob(EmailNotificationJob.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

Users with the same issue

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

Write tip

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