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

Stack Overflow | j3v1t0 | 5 months ago
  1. 0

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

    Stack Overflow | 5 months ago | j3v1t0
    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
      SessionImpl.save
      1. org.hibernate.proxy.AbstractLazyInitializer.setSession(AbstractLazyInitializer.java:123)
      2. org.hibernate.engine.internal.StatefulPersistenceContext.reassociateProxy(StatefulPersistenceContext.java:568)
      3. org.hibernate.engine.internal.StatefulPersistenceContext.reassociateIfUninitializedProxy(StatefulPersistenceContext.java:533)
      4. org.hibernate.event.internal.ProxyVisitor.processEntity(ProxyVisitor.java:49)
      5. org.hibernate.event.internal.AbstractVisitor.processValue(AbstractVisitor.java:124)
      6. org.hibernate.event.internal.AbstractVisitor.processValue(AbstractVisitor.java:82)
      7. org.hibernate.event.internal.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:76)
      8. org.hibernate.event.internal.AbstractVisitor.process(AbstractVisitor.java:143)
      9. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:310)
      10. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:244)
      11. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:109)
      12. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
      13. org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:680)
      14. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:672)
      15. org.hibernate.engine.spi.CascadingActions$5.cascade(CascadingActions.java:235)
      16. org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:352)
      17. org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:295)
      18. org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
      19. org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118)
      20. org.hibernate.event.internal.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:432)
      21. org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:265)
      22. org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:194)
      23. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:137)
      24. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:209)
      25. org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:55)
      26. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:194)
      27. org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:49)
      28. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
      29. org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:711)
      30. org.hibernate.internal.SessionImpl.save(SessionImpl.java:703)
      31. org.hibernate.internal.SessionImpl.save(SessionImpl.java:698)
      31 frames
    3. hibernate.mapeo.dao
      Datos_LaboralesDAO.AgregarDatos
      1. hibernate.mapeo.dao.rh.Datos_LaboralesDAO.AgregarDatos(Datos_LaboralesDAO.java:32)
      1 frame
    4. Sistema.Rh
      VEmpleados$9.actionPerformed
      1. Sistema.Rh.VEmpleados.btnGuardarActionPerformed(VEmpleados.java:1557)
      2. Sistema.Rh.VEmpleados.access$800(VEmpleados.java:92)
      3. Sistema.Rh.VEmpleados$9.actionPerformed(VEmpleados.java:702)
      3 frames
    5. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
      7. java.awt.Component.processMouseEvent(Component.java:6535)
      8. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      9. java.awt.Component.processEvent(Component.java:6300)
      10. java.awt.Container.processEvent(Container.java:2236)
      11. java.awt.Component.dispatchEventImpl(Component.java:4891)
      12. java.awt.Container.dispatchEventImpl(Container.java:2294)
      13. java.awt.Component.dispatchEvent(Component.java:4713)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      17. java.awt.Container.dispatchEventImpl(Container.java:2280)
      18. java.awt.Window.dispatchEventImpl(Window.java:2750)
      19. java.awt.Component.dispatchEvent(Component.java:4713)
      20. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      21. java.awt.EventQueue.access$500(EventQueue.java:97)
      22. java.awt.EventQueue$3.run(EventQueue.java:709)
      23. java.awt.EventQueue$3.run(EventQueue.java:703)
      24. java.security.AccessController.doPrivileged(Native Method)
      25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      26. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      27. java.awt.EventQueue$4.run(EventQueue.java:731)
      28. java.awt.EventQueue$4.run(EventQueue.java:729)
      29. java.security.AccessController.doPrivileged(Native Method)
      30. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      31. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      32. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      34. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      36. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      37. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      37 frames