Multithreading Exception : “Illegal attempt to associate a collection with two open sessions”?

The issue you are facing is that you load an entity with a collection with session 1 and then somehow this object is passed to session 2 while the object is still associated to an open session 1. This simply does not work, even in a single threaded environment.

Either detach the object from the session 1 or reload the object in session 2.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top