-->
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.  [ 1 post ] 
Author Message
 Post subject: Jboss + Hibernate + Session is closed
PostPosted: Sat Aug 12, 2006 5:51 am 
Newbie

Joined: Mon May 24, 2004 3:51 am
Posts: 9
Hi all,

I'm using JBoss 4.0.4.GA with integrated hibernate 3.2.0.cr2
DAO is called by the web client through stateless session beans. Their transaction type is "Requires".
When doing a stress test by clicking on 3 links in the client which all do relatively big search in database I get an "session is closed" exception. I click on each link before the other finishes. The transaction timeout is default but the execution does not passes this time (I see no warning suggestion that the transaction has timed-out))
The sessions are created through getCurrentSession()

If I only change the hibernate version to 3.1.0 I have no exception and everything runs fine.
Trying with 3.1.3 I have the same error.

12:48:55,625 ERROR [DataManagerImpl] org.hibernate.SessionException: Session is closed!
at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
at org.hibernate.impl.SessionImpl.setFlushMode(SessionImpl.java:1279)

Thanks


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

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.