org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions

liferay.com | 4 months ago
  1. 0

    Column Blob with service builder create error - Forums | Liferay

    liferay.com | 12 months ago
    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions
  2. 0

    Column Blob with service builder create error - Forums

    liferay.com | 4 months ago
    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions
  3. 0

    Hibernate exception on open sessions. How can I debug this?

    Stack Overflow | 5 years ago | Cratylus
    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions

    Stack Overflow | 2 years ago | user3808750
    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions
  6. 0

    How to cacche Hibernate persistance objects

    Stack Overflow | 3 years ago
    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions

    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

      illegally attempted to associate a proxy with two open Sessions

      at org.hibernate.proxy.AbstractLazyInitializer.setSession()
    2. Hibernate
      StatefulPersistenceContext.unproxyAndReassociate
      1. org.hibernate.proxy.AbstractLazyInitializer.setSession(AbstractLazyInitializer.java:126)
      2. org.hibernate.engine.StatefulPersistenceContext.reassociateProxy(StatefulPersistenceContext.java:573)
      3. org.hibernate.engine.StatefulPersistenceContext.unproxyAndReassociate(StatefulPersistenceContext.java:618)
      3 frames
    3. Hibernate
      SessionImpl.saveOrUpdate
      1. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:89)
      2. org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:685)
      3. org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:677)
      3 frames
    4. Hibernate
      Cascade.cascade
      1. org.hibernate.engine.CascadingAction$5.cascade(CascadingAction.java:252)
      2. org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
      3. org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
      4. org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
      5. org.hibernate.engine.Cascade.cascade(Cascade.java:161)
      5 frames
    5. Hibernate
      SessionImpl.flush
      1. org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:154)
      2. org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:145)
      3. org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:88)
      4. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
      5. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
      5 frames
    6. Liferay Portal Impl
      SessionImpl.flush
      1. com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:144)
      1 frame
    7. Liferay Portal Service
      ClassLoaderSession.flush
      1. com.liferay.portal.kernel.dao.orm.ClassLoaderSession.flush(ClassLoaderSession.java:237)
      1 frame
    8. Liferay Portal Impl
      PortletSessionFactoryImpl.closeSession
      1. com.liferay.portal.dao.orm.hibernate.PortletSessionFactoryImpl.closeSession(PortletSessionFactoryImpl.java:57)
      1 frame
    9. Liferay Portal Service
      BasePersistenceImpl.closeSession
      1. com.liferay.portal.service.persistence.impl.BasePersistenceImpl.closeSession(BasePersistenceImpl.java:83)
      1 frame