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

hibernate.org | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Hibernate Community • View topic - Spring and hibernate 3

    hibernate.org | 8 months ago
    org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions

    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