that is expected behavior, if you persist hibernate objects across requests errors like that will occur you can try session.merge(obj); it is recommended to handle it differently
Davor Hrg On Fri, Feb 29, 2008 at 7:15 AM, Joshua Jackson <[EMAIL PROTECTED]> wrote: > Dear all, > > I have annotated an object with @ApplicationState. On the next page, I > persist that object with Hibernate. But it turns out it throw this > exception. > > org.hibernate.HibernateException: Illegal attempt to associate a > collection with two open sessions > > I am using Tapestry 5.0.11-SNAPSHOT. > > Has anyone face this problem before? > > Thanks in advance. > -- > Let's show the world what we've got. > > Blog: http://joshuajava.wordpress.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
