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

hibernate.org | 4 months ago
  1. 0

    Hibernate Community • View topic - illegally attempted to associate a proxy with 2 open Session

    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
      PersistenceContext.unproxyAndReassociate
      1. org.hibernate.proxy.AbstractLazyInitializer.setSession(AbstractLazyInitializer.java:68)
      2. org.hibernate.engine.PersistenceContext.reassociateProxy(PersistenceContext.java:520)
      3. org.hibernate.engine.PersistenceContext.unproxyAndReassociate(PersistenceContext.java:565)
      3 frames
    3. Hibernate
      SessionImpl.update
      1. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:65)
      2. org.hibernate.impl.SessionImpl.update(SessionImpl.java:499)
      3. org.hibernate.impl.SessionImpl.update(SessionImpl.java:490)
      3 frames
    4. org.sjsu.edu
      EstimatedCostDisplay.actionPerformed
      1. org.sjsu.edu.business.model.EstimatedCostManager.updateCostValue(EstimatedCostManager.java:163)
      2. org.sjsu.edu.business.model.EstimatedCostManager.updateLeafNodeCost(EstimatedCostManager.java:139)
      3. org.sjsu.edu.business.model.EstimatedCostManager.computeSECSICCost(EstimatedCostManager.java:197)
      4. org.sjsu.edu.presentation.EstimatedCostDisplay.actionPerformed(EstimatedCostDisplay.java:368)
      4 frames
    5. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
      6. java.awt.Component.processMouseEvent(Component.java:5488)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
      8. java.awt.Component.processEvent(Component.java:5253)
      9. java.awt.Container.processEvent(Container.java:1966)
      10. java.awt.Component.dispatchEventImpl(Component.java:3955)
      11. java.awt.Container.dispatchEventImpl(Container.java:2024)
      12. java.awt.Component.dispatchEvent(Component.java:3803)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
      16. java.awt.Container.dispatchEventImpl(Container.java:2010)
      17. java.awt.Window.dispatchEventImpl(Window.java:1766)
      18. java.awt.Component.dispatchEvent(Component.java:3803)
      19. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      20. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
      21. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      22. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      24. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      24 frames