org.hibernate.AssertionFailure

null id in com.comp123.db.domain.tables.ReportEntry entry (don't flush the Session after an exception occurs)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • 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 org.springframework.orm.hibernate3.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1244) at $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 org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) 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 org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) 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.util.MethodInvoker.invoke(MethodInvoker.java:275) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

jessejesse
9 times, last one
musketyrmusketyr
4 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,