You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "uday ogra (JIRA)" <ji...@apache.org> on 2017/08/30 06:35:00 UTC

[jira] [Created] (JCS-182) Error while closing data source factory on shutdown

uday ogra created JCS-182:
-----------------------------

             Summary: Error while closing data source factory on shutdown
                 Key: JCS-182
                 URL: https://issues.apache.org/jira/browse/JCS-182
             Project: Commons JCS
          Issue Type: Bug
            Reporter: uday ogra
            Priority: Minor


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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)