java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]

jakarta-jcs-users | Jim Bethancourt | 10 years ago
  1. 0

    Quick RMI\Remote Auxiliary Cache questions

    jakarta-jcs-users | 10 years ago | Jim Bethancourt
    java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]
  2. 0

    Re: Quick RMI\Remote Auxiliary Cache questions

    jakarta-jcs-users | 10 years ago | Jim Bethancourt
    java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]
  3. 0

    Eclipse Community Forums: ServerTools (WTP) » Problem accessing resources in other depending projects

    eclipse.org | 4 months ago
    java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse Community Forums: Web Tools Project (WTP) » Problem accessing resources in other depending projects

    eclipse.org | 11 months ago
    java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]
  6. 0

    If a cache configuration file does not exist on the classpath, an IllegalStateException is thrown by JCS.getInstance. This is not mentioned in the javadoc, and because it's not expected, crashes the calling program. Preferably, this should be a checked exception of some sort to force the caller to deal with this issue (potentially continuing their program with the cache disabled), but should at least be documented. JCS.getInstance(cacheClassName) java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf] at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:239) at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:191) at org.apache.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:119) at org.apache.jcs.JCS.ensureCacheManager(JCS.java:99) at org.apache.jcs.JCS.getInstance(JCS.java:64) at com.telstra.tdsdi.cache.CacheManager.configure(CacheManager.java:72) at com.telstra.tdsdi.cache.CacheManager.doWork(CacheManager.java:194) at com.telstra.common.supervisor.SupervisedThread.run(SupervisedThread.java:39) The next time that getInstance is called, and every time after that, JCS reacts differently - throwing a NullPointerException. This is inconsistent. Preferably, this should check to see whether the first 'configure' attempt was successful, and react accordingly. Optionally it could throw the same exception as the first call, or failing that, should at least be documented in the javadoc for this method. java.lang.NullPointerException at org.apache.jcs.config.OptionConverter.findAndSubst(OptionConverter.java:289) at org.apache.jcs.config.OptionConverter.instantiateByKey(OptionConverter.java:167) at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseElementAttributes(CompositeCacheConfigurator.java:438) at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:304) at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:280) at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:445) at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:384) at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:371) at org.apache.jcs.JCS.getInstance(JCS.java:66) at com.telstra.tdsdi.cache.CacheManager.configure(CacheManager.java:72) at com.telstra.tdsdi.cache.CacheManager.doWork(CacheManager.java:194) at com.telstra.common.supervisor.SupervisedThread.run(SupervisedThread.java:39)

    Apache's JIRA Issue Tracker | 10 years ago | Michael Jordan
    java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Failed to load properties for name [/cache.ccf]

      at org.apache.jcs.engine.control.CompositeCacheManager.configure()
    2. JCS
      RemoteCacheStartupServlet.init
      1. org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:239)
      2. org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.createCacheManager(RemoteCacheServer.java:149)
      3. org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.init(RemoteCacheServer.java:120)
      4. org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.<init>(RemoteCacheServer.java:110)
      5. org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(RemoteCacheServerFactory.java:162)
      6. org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet.init(RemoteCacheStartupServlet.java:130)
      6 frames
    3. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:211)
      1 frame
    4. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
      2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
      3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
      5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
      6. org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      7. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
      8. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
      9. org.apache.catalina.core.StandardService.start(StandardService.java:450)
      10. org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
      11. org.apache.catalina.startup.Catalina.start(Catalina.java:551)
      11 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      2 frames