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

[jira] [Created] (JCS-179) org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServerFactory not able to start server

Archer created JCS-179:
--------------------------

             Summary: org.apache.commons.jcs.auxiliary.remote.server.RemoteCacheServerFactory not able to start server
                 Key: JCS-179
                 URL: https://issues.apache.org/jira/browse/JCS-179
             Project: Commons JCS
          Issue Type: Bug
          Components: RMI Remote Cache
    Affects Versions: jcs-2.1
         Environment: windows 7
            Reporter: Archer



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



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