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

org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServerFactory not able to start server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-2.1
    • jcs-2.2
    • RMI Remote Cache
    • windows 7

    Description

      The issue is on the org.apache.commons.jcs.engine.control.CompositeCacheManager.java (configure function).
      for some reason InputStream is = getClass().getResourceAsStream( propFile ) is giving access error. After reviewing source code, I would like to question why doing a read of the file again? Doesn't the class already have the the same properties loaded already?

      steps to reproduce the issue:

      1. created a window batch file to start the RemoteCacheServerFactory
      "c:\Program Files\Java\jdk1.8.0_92\bin\java" -classpath C:\Apache\jcs-2.1-bin\commons-jcs-core\commons-jcs-core-2.1.jar;C:\javalib\apache-commons\commons-logging.jar org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServerFactory cache.ccf

      getting the following error.

      Jun 16, 2017 2:47:05 PM org.apache.commons.jcs.engine.control.CompositeCacheManager getUnconfiguredI
      INFO: Instance is null, returning unconfigured instance
      Jun 16, 2017 2:47:05 PM org.apache.commons.jcs.engine.control.CompositeCacheManager configure
      INFO: Creating cache manager from config file: cache.ccf
      Exception in thread "main" java.rmi.RemoteException: Failed to read configuration file [cache.ccf];
      org.apache.commons.jcs.access.exception.CacheException: Failed to read configuration file [c
      at org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServer.init(RemoteCacheServer.j
      at org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServer.<init>(RemoteCacheServer
      at org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(RemoteCac
      at org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(RemoteCac
      at org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServerFactory.main(RemoteCacheS
      Caused by: org.apache.commons.jcs.access.exception.CacheException: Failed to read configuration file
      at org.apache.commons.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManag
      at org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServer.createCacheManager(Remot
      at org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServer.init(RemoteCacheServer.j

      Attachments

        Activity

          People

            tv Thomas Vandahl
            alawless Archer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: