Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
I am using JDBC auxillary cache. Everything works fine but when server is shutdown I get the following error. Seems JCS code is trying to close a connection which is null
ERROR Could not close data source factory null
java.sql.SQLException: Exception caught closing data source
at org.apache.commons.jcs.auxiliary.disk.jdbc.dsfactory.SharedPoolDataSo
urceFactory.close(SharedPoolDataSourceFactory.java:99)
at org.apache.commons.jcs.auxiliary.disk.jdbc.JDBCDiskCacheFactory.dispo
se(JDBCDiskCacheFactory.java:137)
at org.apache.commons.jcs.engine.control.CompositeCacheManager.shutDown(
CompositeCacheManager.java:695)
at org.apache.commons.jcs.engine.control.CompositeCacheManager$ShutdownH
ook.run(CompositeCacheManager.java:982)
Caused by: java.lang.NullPointerException
at org.apache.commons.jcs.auxiliary.disk.jdbc.dsfactory.SharedPoolDataSo
urceFactory.close(SharedPoolDataSourceFactory.java:95)
... 3 more