-->
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: c3p0 throws NullPointerException regularly
PostPosted: Fri Nov 11, 2005 1:53 pm 
Newbie

Joined: Thu Sep 08, 2005 9:27 am
Posts: 10
Hibernate version: 2

Stack trace of any exception that occurs:
Code:
Failed to destroy resource: com.mchange.v2.c3p0.impl.C3P0PooledConnection@166ff9c
java.sql.SQLException: At least one error occurred while attempting to close() the PooledConnection: java.lang.NullPointerException
   at com.mchange.v2.c3p0.impl.C3P0PooledConnection.close(C3P0PooledConnection.java:281)
   at com.mchange.v2.c3p0.impl.C3P0PooledConnection.close(C3P0PooledConnection.java:191)
   at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.destroyResource(C3P0PooledConnectionPool.java:150)
   at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:523)

Name and version of the database you are using:
MySql 4

I'm using Hibernate 2 and c3p0 as connection pool.
It works fine, but it unexpectedly throws NullPointerExceptions when trying to close connections. It doesn't happen all the time, it's random.

Does anybody know what may be causing this?

Thanks!

_________________
Pablo N. Alvarez
Austral University
Argentina


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.