-->
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.  [ 4 posts ] 
Author Message
 Post subject: c3p0 DEBUG -- CLOSE BY CLIENT STACK TRACE
PostPosted: Fri Dec 28, 2007 12:38 pm 
Newbie

Joined: Fri Dec 28, 2007 11:57 am
Posts: 5
Hello Hibernate and c3p0 users

I searched everywhere and only found one non-definitive
link about the following debug output:

02:49:21,102 DEBUG NewPooledConnection:566 - com.mchange.v2.c3p0.impl.NewPooledConnection@9c5167 closed by a client.
java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:566)
at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

I am using Hibenate 3.2 and c3p0-0.9.1.2

THE QUESTION: Is this significant or can this be ignored ?
(i.e.: is connection pooling working properly ?)

Thanks
Maurice Yarrow


Note:
Am using a basic c3p0 config in hibernate.cfg.xml:
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.min_size">5</property>
<property name="c3p0.max_size">20</property>
<property name="c3p0.timeout">300</property>
<property name="c3p0.max_statements">50</property>
<property name="c3p0.idle_test_period">3000</property>

<property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 28, 2007 5:59 pm 
Newbie

Joined: Tue Mar 08, 2005 12:24 pm
Posts: 9
Location: Boston
Looks serious - your DB pooling code (not Hibernate) seems to be giving out a pooled connection to some module which is closing it inappropriately. I assume that eventually this connection will again be given out from the pool and cause errors because it it closed, unless the pooling libraries are smart enough to straighten it out for you.


Top
 Profile  
 
 Post subject: c3p0 - CLOSE BY CLIENT STACK TRACE
PostPosted: Fri Jan 04, 2008 12:19 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
I use a plain-vanilla Spring-MVC application, with OpenSessionInView, using c3p0 as a connection pool, and get the mentioned error every few lines of my log.

Code:
java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
   at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:566)
   at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
   at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
   at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
   at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


If this "error" is so important, why does c3p0 log it with DEBUG priority?

_________________
Gonzalo Díaz


Top
 Profile  
 
 Post subject: Re: c3p0 DEBUG -- CLOSE BY CLIENT STACK TRACE
PostPosted: Thu Jun 06, 2013 12:44 pm 
Newbie

Joined: Thu Jun 06, 2013 12:38 pm
Posts: 1
Hello:

The error is not important, it seems that is a remaining error code that means nothing. You can check this out here:


http://stackoverflow.com/questions/8403227/weird-error-close-by-client-stack-trace

However, I removed this error when I deleted the destroy-method="close" I have in the declaration of the bean.

It seems that this method can't be called by other objects, so if you declare an explicit call in other part of your application, probably the error will appear.


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