-->
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: ThreadDeath Exception on Session after Tomcat restart
PostPosted: Tue May 04, 2004 2:59 am 
Newbie

Joined: Tue May 04, 2004 2:46 am
Posts: 2
Hi

I'm using Hibernate 2.1.2 with Tomcat 5.0.1.9 for a servlet based webapplication.

I store my Hibernate Session as HttpSession attribute and it works fine,
except I restart the Tomcat server. After that the application throws a ThreadDeath exception on the Hibernate Session object.

My current solution is to check the Tomcat starttime and create a new Hibernate Session if Tomcat is restarted.

Is there a better solution or is this problem a bug in Hibernate?

Thanks for Help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 04, 2004 4:01 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Quote:
I store my Hibernate Session as HttpSession attribute and it works fine


try to open 5 client browsers, add a break point on an update, you're going to have a big surprise.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 04, 2004 4:32 am 
Newbie

Joined: Tue May 04, 2004 2:46 am
Posts: 2
Tested... no problems found. Update was successfully.

But back to my question about the ThreadDeath exception


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.