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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via hibernate.org by Unknown author, 1 year ago
illegally attempted to associate a proxy with two open Sessions
via Stack Overflow by czetsuya
, 2 years ago
illegally attempted to associate a proxy with two open Sessions
via Stack Overflow by Ibrahim Alsaman
, 2 years ago
illegally attempted to associate a proxy with two open Sessions
via Stack Overflow by Unknown author, 2 years ago
illegally attempted to associate a proxy with two open Sessions
via Stack Overflow by Cratylus
, 1 year ago
illegally attempted to associate a proxy with two open Sessions
via Stack Overflow by jboxxpradhana
, 2 years ago
illegally attempted to associate a proxy with two open Sessions
org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions
at org.hibernate.proxy.AbstractLazyInitializer.setSession(AbstractLazyInitializer.java:68)
at org.hibernate.impl.PersistenceContext.reassociateProxy(PersistenceContext.java:406)
at org.hibernate.impl.PersistenceContext.unproxyAndReassociate(PersistenceContext.java:431)
at org.hibernate.impl.SessionImpl.unproxyAndReassociate(SessionImpl.java:874)
at org.hibernate.event.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:60)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:582)
at net.targetgroup.standingdata.StandingDataDAOHibernate.saveStandingDataRow(StandingDataDAOHibernate.java:104)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.