-->
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: Hibernate Session uses dead connection
PostPosted: Thu Sep 24, 2009 9:59 am 
Newbie

Joined: Thu Aug 13, 2009 4:52 am
Posts: 12
hi there

i have a problem with my session
it uses the same connection all the time ... so if this connection dies (e.g. because of timeout while the user was inactive), i get a
"com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure"

the c3p0 - pool recognizes this, by saying following:
Code:
634561 [btpool0-5] WARN  com.mchange.v2.c3p0.impl.NewPooledConnection  - [c3p0] A PooledConnection that has already signalled a Connection error is still in use!
634561 [btpool0-5] WARN  com.mchange.v2.c3p0.impl.NewPooledConnection  - [c3p0] Another error has occurred [ com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error:

...blah blah


well... how can i tell hibernate to take a new connection from the pool...?

if you need some information about my hibernate.cfg.xml or other setting-files, i'll post them..

thanks in advance
lenaz


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.