Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-182

Error while closing data source factory on shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • jcs-3.0
    • JDBC Disk Cache
    • 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

      Attachments

        Activity

          People

            tv Thomas Vandahl
            udayogra uday ogra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: