org.hibernate.HibernateException: cannot recreate collection while filter is enabled: [tavant.twms.domain.customReports.Report Section.questionnaire#1100000002480]

Hibernate JIRA | vamshi gunda | 7 years ago
  1. 0

    Hi, I have an One to One association as shown below. But when i am saving the object, it throws me the following error. The list "questionnaire" is in a class Section. I am trying to save a section object with a "ReportFormQuestion object" in it. Please let me know if you need any details. Thanks and regards Vamshi Gunda @OneToMany(cascade = {javax.persistence.CascadeType.ALL}, fetch = FetchType.LAZY) @JoinTable(name = "questionnaire", joinColumns = @JoinColumn(name = "for_section")) @Filter(name="excludeInactive") private List<ReportFormQuestion> questionnaire = new ArrayList<ReportFormQuestion>(); org.hibernate.event.def.AbstractFlushingEventListener : Could not synchronize database state w ith session org.hibernate.HibernateException: cannot recreate collection while filter is enabled: [tavant.twms.domain.customReports.Report Section.questionnaire#1100000002480] at org.hibernate.action.CollectionUpdateAction.execute(CollectionUpdateAction.java:55) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:170) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:655) at org.springframework.transaction.support.AbstractPlatformTransactionManager

    Hibernate JIRA | 7 years ago | vamshi gunda
    org.hibernate.HibernateException: cannot recreate collection while filter is enabled: [tavant.twms.domain.customReports.Report Section.questionnaire#1100000002480]
  2. 0

    Hi, I have an One to One association as shown below. But when i am saving the object, it throws me the following error. The list "questionnaire" is in a class Section. I am trying to save a section object with a "ReportFormQuestion object" in it. Please let me know if you need any details. Thanks and regards Vamshi Gunda @OneToMany(cascade = {javax.persistence.CascadeType.ALL}, fetch = FetchType.LAZY) @JoinTable(name = "questionnaire", joinColumns = @JoinColumn(name = "for_section")) @Filter(name="excludeInactive") private List<ReportFormQuestion> questionnaire = new ArrayList<ReportFormQuestion>(); org.hibernate.event.def.AbstractFlushingEventListener : Could not synchronize database state w ith session org.hibernate.HibernateException: cannot recreate collection while filter is enabled: [tavant.twms.domain.customReports.Report Section.questionnaire#1100000002480] at org.hibernate.action.CollectionUpdateAction.execute(CollectionUpdateAction.java:55) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:170) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:655) at org.springframework.transaction.support.AbstractPlatformTransactionManager

    Hibernate JIRA | 7 years ago | vamshi gunda
    org.hibernate.HibernateException: cannot recreate collection while filter is enabled: [tavant.twms.domain.customReports.Report Section.questionnaire#1100000002480]
  3. 0

    Hibernate Cannot Recreate Collection While Filter is Enabled

    Stack Overflow | 3 years ago | Saffar
    org.hibernate.HibernateException: cannot recreate collection while filter is enabled: [domain.entity.Member.friends#98304]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    VRaptor + Erro collection is not associated with any session - Assuntos Gerais - GUJ

    com.br | 11 months ago
    javax.persistence.PersistenceException: org.hibernate.HibernateException: collection is not associated with any session 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:261) 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at br.com.tranship.sgi.repository.dao.impl.EmbarcacaoDAOImpl.listarRebocadores(EmbarcacaoDAOImpl.java:375) 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at br.com.tranship.sgi.service.impl.EmbarcacaoServiceImpl.listarRebocadores(EmbarcacaoServiceImpl.java:92) 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at br.com.tranship.sgi.controller.AutotracController.list(AutotracController.java:100) 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 14:40:57,573 ERROR [stderr] (http--0.0.0.0-8091-5) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  6. 0

    zeroturnaround.com ยป Topic: Reloading Spring bean corrupts hibernate session

    zeroturnaround.com | 1 year ago
    org.hibernate.HibernateException: collection is not associated with any session

    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.HibernateException

      cannot recreate collection while filter is enabled: [tavant.twms.domain.customReports.Report Section.questionnaire#1100000002480]

      at org.hibernate.action.CollectionUpdateAction.execute()
    2. Hibernate
      CollectionUpdateAction.execute
      1. org.hibernate.action.CollectionUpdateAction.execute(CollectionUpdateAction.java:55)
      1 frame
    3. Hibernate
      ActionQueue.executeActions
      1. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
      2. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
      3. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:170)
      3 frames
    4. Hibernate
      SessionImpl.managedFlush
      1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
      2. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
      3. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
      4. org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
      4 frames
    5. Hibernate
      JDBCTransaction.commit
      1. org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
      1 frame
    6. Hibernate
      HibernateTransactionManager.doCommit
      1. org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:655)
      1 frame