-->
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.  [ 6 posts ] 
Author Message
 Post subject: C3P0PooledConnection closed.
PostPosted: Mon Jan 05, 2004 4:47 am 
Beginner
Beginner

Joined: Wed Aug 27, 2003 5:03 am
Posts: 34
I use the C3PO pool connection for Hibernate, but after a period of time is get the following error:

C3P0PooledConnection closed. [com.mchange.v2.c3p0.impl.C3P0PooledConnection@646bfb]

I searched the forum and i searched google, but no answers found for my problem. I hope someone here can help me or someone has a good alternative for C3PO.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 12:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Try setting hibernate.c3p0.validate=true


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2004 9:03 pm 
C3P0 Developer
C3P0 Developer

Joined: Tue Jan 06, 2004 8:58 pm
Posts: 145
Hi. The message you're seeing is not an error at all -- it is a debug trace message I inadvertantly left on. If this is the only message you're seeing, it isn't a problem!

regards,
Steve Waldman
(c3p0 maintainer)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 08, 2004 4:29 am 
Beginner
Beginner

Joined: Wed Aug 27, 2003 5:03 am
Posts: 34
Ok that's nice to know. But what exactly happens when that debug message appears?

I think the pool shouldn't be closed at anytime. But maybe i'm misunderstanding the debug message, that is very good possible.

And is it possible to turn that debug message off?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2004 4:58 pm 
C3P0 Developer
C3P0 Developer

Joined: Tue Jan 06, 2004 8:58 pm
Posts: 145
nl_age,

Sorry about the delayed response. The pool is not being closed at all -- only a single PooledConnection. This might happen if c3p0 has detected that a Connection has gone stale, or if a Connection has exceeded its maximum idle time in the pool.

Please feel free to write me with any c3p0 issues at swaldman@mchange.com (or use c3p0-users@lists.sourceforge.net). I monitor the hibernate forums only very intermittently, but I do try to respond to c3p0-related email quckly!)

Steve

p.s. there is no way to turn off the debug message -- c3p0's logging strategy is rudimentary: I need to comment out the System.err.println(...) statement! (I know... I know... in this day and age...) It'll be gone in the next minor release of c3p0.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 4:35 am 
Beginner
Beginner

Joined: Wed Aug 27, 2003 5:03 am
Posts: 34
Ok thanx, it's really clear now.

For futher questions about c3po i will use the mailing list.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.