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!