-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Exception help
PostPosted: Wed Jul 19, 2006 3:18 pm 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
From time to time I am getting this error..I am using alpha version

Session was disposed of or closed
Object name: 'ISession'.

when does it arise? why?

thks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 12:58 am 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
I am getting this error in this scenario..

Say,i moved from page one to another,then another,and then user clicks back button on browser,comes to first page and clicks save..then i get the error..
Session was disposed of or closed
Object name: 'ISession'


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 11:57 am 
Expert
Expert

Joined: Fri May 13, 2005 5:56 pm
Posts: 308
Location: Santa Barbara, California, USA
in an ASP.NET app, i can say from my own experience that this type of error generally happens when you are trying to load a lazy collection in an object that was opened in a past session. there is so much more to the problem, though, so i'm assuming alot. if you think you are running into such a scenario, then you need to look at the session.Lock() method as one of probably three or four ways to fix this error.

-devon


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.