I'll guess because the file isn't in your classpath. Try putting a leading slash in front of the name:
JCS.setConfigFilename("/testcache.ccf"); If that fails try using the default name first (cache.ccf) and see if there's a problem setting alternate config names. -----Original Message----- From: Hoying, Ken [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 9:56 AM To: JCS Users List Subject: NPE I know this sounds ridiculous and should be simple, but I cannot figure out why I cannot get around this NullPointerException: java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:61) at java.io.InputStreamReader.<init>(InputStreamReader.java:80) at java.util.Properties.load(Properties.java:266) at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC acheManager.java:170) at org.apache.jcs.JCS.ensureCacheManager(JCS.java:103) at org.apache.jcs.JCS.getInstance(JCS.java:63) at org.tiaa.j2eeinfra.cache.impl.TiaaJCSCacheFactory.accessCache(Unknown Source) at CacheTest.main(CacheTest.java:37) Here is my code: JCS.setConfigFilename("testcache.ccf"); JCS cache = JCS.getInstance("TEST"); What am simple thing am I doing wrong? Thanks, Ken ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]