File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Object Relational Mapping
Illegal attempt to associate a collection with two open s essions
Joined: Mar 06, 2006
Feb 01, 2007 07:36:00
I am facing the Illegal attempt to associate a collection with two open
sessions. How can i make sure that first session get closed before hibernating making the second session.
Thanks in advance for your prompt answer
Joined: Feb 05, 2001
Feb 01, 2007 11:30:00
Well you can call session.close() on the first session.
Actually, can we see the code for the two sessions?
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Illegal attempt to associate a collection with two open s essions
After delete I get: Illegal attempt to associate a collection with two open sessions
Illegal attempt to associate a collection with two open sessions
Usual problems managing Hibernate sessions... PLEASE HELP?
HELP !!! Illegal use of List across sessions exception
Could not load com.mysql.jdbc.SQLError
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014