Details
-
Bug
-
Resolution: Fixed
-
Minor
-
0.9.29
-
None
-
Windows 7, Java 6, Spring 3.1 Snapshot, slf4j 1.6.1, logback 0.9.29, bonecp 0.7.1
Description
I use BoneCP together with logback. BoneCP complains about a connection that is never closed in the DBAppender
The problem is in the method discoverConnnectionProperties in ConnectionSourceBase. This method does not close the database connection
19:48:56.896 [BoneCP-connection-watch-thread] ERROR com.jolbox.bonecp.CloseThreadMonitor - Connection obtained from thread [Thread-4] was never closed.
Stack trace of location where connection was obtained follows:
java.lang.Thread.getStackTrace(Thread.java:1479)
com.jolbox.bonecp.BoneCP.captureStackTrace(BoneCP.java:543)
com.jolbox.bonecp.BoneCP.watchConnection(BoneCP.java:532)
com.jolbox.bonecp.BoneCP.getConnection(BoneCP.java:518)
com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:114)
ch.qos.logback.core.db.DataSourceConnectionSource.getConnection(DataSourceConnectionSource.java:72)
ch.qos.logback.core.db.ConnectionSourceBase.discoverConnnectionProperties(ConnectionSourceBase.java:47)
ch.qos.logback.core.db.DataSourceConnectionSource.start(DataSourceConnectionSource.java:52)