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

hibernate.org | 4 months ago
  1. 0

    Hibernate Community • View topic - Spring and hibernate 3

    hibernate.org | 4 months ago
    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Hibernate- illegally attempted to associate a proxy with two open Sessions on creating a new Entity Object

    Stack Overflow | 2 months ago | Developer
    org.springframework.orm.jpa.JpaSystemException: org.hibernate.HibernateException: c; nested exception is javax.persistence.PersistenceException: 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
      AbstractLazyInitializer.setSession
      1. org.hibernate.proxy.AbstractLazyInitializer.setSession(AbstractLazyInitializer.java:68)
      1 frame
    3. Hibernate
      SessionImpl.saveOrUpdate
      1. org.hibernate.impl.PersistenceContext.reassociateProxy(PersistenceContext.java:406)
      2. org.hibernate.impl.PersistenceContext.unproxyAndReassociate(PersistenceContext.java:431)
      3. org.hibernate.impl.SessionImpl.unproxyAndReassociate(SessionImpl.java:874)
      4. org.hibernate.event.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:60)
      5. org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:582)
      6. org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:577)
      6 frames
    4. net.targetgroup.standingdata
      StandingDataDAOHibernate.saveStandingDataRow
      1. net.targetgroup.standingdata.StandingDataDAOHibernate.saveStandingDataRow(StandingDataDAOHibernate.java:104)
      1 frame