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

coderanch.com | 3 months ago
  1. 0

    Hibernate: org.hibernate.AssertionFailure: null id don't flush the Session after an exception occurs (Object Relational Mapping forum at Coderanch)

    coderanch.com | 8 months ago
    org.hibernate.AssertionFailure: null id in com.comp123.db.domain.tables.ReportEntry entry (don't flush the Session after an exception occurs)
  2. 0

    Hibernate: org.hibernate.AssertionFailure: null id don't flush the Session after an exception occurs (Object Relational Mapping forum at Coderanch)

    coderanch.com | 3 months ago
    org.hibernate.AssertionFailure: null id in com.comp123.db.domain.tables.ReportEntry entry (don't flush the Session after an exception occurs)
  3. 0

    500 internal server error with GWT Tomcat Apache

    Stack Overflow | 1 year ago | Purple Lagoon
    org.hibernate.AssertionFailure: null id in com.simulconsult.test.shared.model.Script entry (don't flush the Session after an exception occurs)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    catalina Archives - BlogoSfera

    co.uk | 1 year ago
    org.hibernate.AssertionFailure: null id in com.simulconsult.test.shared.model.Script entry (don't flush the Session after an exception occurs)
  6. 0

    I get from time to time the following error on sonar server side. After this error, sonar freezes and I had to kill it. 2008.11.27 14:05:37 INFO org.sonar.INFO project=nbds, task=org.sonar.core.batch.JobsExecutor starting task 2008.11.27 14:05:37 INFO org.sonar.INFO project=nbds, task=org.sonar.core.batch.JobsExecutor, snapshot=654 processing snapshot 2008.11.27 14:08:14 ERROR o.h.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 org.sonar.commons.measures.Measure 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 org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:297) at org.sonar.commons.database.BatchDatabaseManager.flush(BatchDatabaseManager.java:115) at org.sonar.commons.database.BatchDatabaseManager.commit(BatchDatabaseManager.java:60) at org.sonar.commons.database.BatchDatabaseManager.stop(BatchDatabaseManager.java:50) at org.sonar.commons.DaoFacade.stop(DaoFacade.java:49) 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:585) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.stop(ReflectionLifecycleStrategy.java:96) at org.picocontainer.adapters.InstanceAdapter.stop(InstanceAdapter.java:112) at org.picocontainer.behaviors.AbstractBehavior.stop(AbstractBehavior.java:176) at org.picocontainer.behaviors.Stored.stop(Stored.java:111) at org.picocontainer.DefaultPicoContainer.stopAdapters(DefaultPicoContainer.java:907) at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:667) at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:663) at org.sonar.core.Application.stop(Application.java:66) at org.sonar.web.listeners.ApplicationListener.contextDestroyed(ApplicationListener.java:56) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:577) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559)

    SonarSource JIRA | 8 years ago | Michel Pawlak
    org.hibernate.AssertionFailure: null id in org.sonar.commons.measures.Measure entry (don't flush the Session after an exception occurs)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Hibernate
      SessionImpl.flush
      1. org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:55)
      2. org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:164)
      3. org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:120)
      4. org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
      5. org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
      6. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
      7. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1460.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. Hibernate
      HibernateTemplate$CloseSuppressingInvocationHandler.invoke
      1. org.springframework.orm.hibernate3.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1244)
      1 frame
    5. Unknown
      $Proxy57.flush
      1. $Proxy57.flush(Unknown Source)
      1 frame
    6. com.comp123.db
      HibernateDao$4.doInHibernate
      1. com.comp123.db.dao.common.HibernateDao$4.doInHibernate(HibernateDao.java:126)
      1 frame
    7. Hibernate
      HibernateTemplate.execute
      1. org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374)
      2. org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
      2 frames
    8. com.comp123.db
      EmailReportLogHibernateDao.addEmailReportLog
      1. com.comp123.db.dao.common.HibernateDao.makePersistent(HibernateDao.java:123)
      2. com.comp123.db.dao.tables.EmailReportLogHibernateDao.addEmailReportLog(EmailReportLogHibernateDao.java:41)
      2 frames
    9. com.comp123.presentation
      EmailNotificationJob$1.doInTransactionWithoutResult
      1. com.comp123.presentation.emailnotification.EmailNotificationJob.insertActionLog(EmailNotificationJob.java:117)
      2. com.comp123.presentation.emailnotification.EmailNotificationJob.sendEmailReport(EmailNotificationJob.java:97)
      3. com.comp123.presentation.emailnotification.EmailNotificationJob.access$500(EmailNotificationJob.java:24)
      4. com.comp123.presentation.emailnotification.EmailNotificationJob$1.doInTransactionWithoutResult(EmailNotificationJob.java:62)
      4 frames
    10. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
      2. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
      2 frames
    11. com.comp123.presentation
      EmailNotificationJob.excuteMailSendJob
      1. com.comp123.presentation.emailnotification.EmailNotificationJob.excuteMailSendJob(EmailNotificationJob.java:48)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    13. Spring Core
      MethodInvoker.invoke
      1. org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:275)
      1 frame
    14. Spring Context Support
      QuartzJobBean.execute
      1. org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272)
      2. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      2 frames
    15. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
      2 frames