jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sambasiva Reddy" <sambasivaredd...@gmail.com>
Subject Regarding cache.ccf
Date Thu, 26 Oct 2006 10:36:19 GMT
Hi sir,
I configured cache.ccf in classpath,but it failed to take cache.ccf
file. In which directory i  need to put cache.ccf file. while i am
executing the JCS program. following error coming:

java.lang.NullPointerException
       at java.util.Properties$LineReader.readLine(Properties.java:365)
       at java.util.Properties.load(Properties.java:293)
       at common.logging.WebPortalLogger.<clinit>(WebPortalLogger.java:33)
       at common.caching.test.CachingTestCase.setUp(CachingTestCase.java:71)
       at junit.framework.TestCase.runBare(TestCase.java:125)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
.WebPortalLogger.java - Exception : java.lang.NullPointerException
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)
log4j:WARN No appenders could be found for logger ().
log4j:WARN Please initialize the log4j system properly.
common.caching.CachingException[super = [ cause = Failed to load
properties for name [/cache.ccf] ]
       at common.caching.BaseCacheManager.getCacheForRegion(BaseCacheManager.java:114)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:337)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:325)
       at common.caching.test.CachingTestCase.testBasicCaching(CachingTestCase.java:182)
       at common.caching.test.CachingTestCase.runTests(CachingTestCase.java:99)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)
Caused by: 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 common.caching.BaseCacheManager.getCacheForRegion(BaseCacheManager.java:100)
       ... 15 more
Caused by:
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 common.caching.BaseCacheManager.getCacheForRegion(BaseCacheManager.java:100)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:337)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:325)
       at common.caching.test.CachingTestCase.testBasicCaching(CachingTestCase.java:182)
       at common.caching.test.CachingTestCase.runTests(CachingTestCase.java:99)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)
Caused by:
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 common.caching.BaseCacheManager.getCacheForRegion(BaseCacheManager.java:100)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:337)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:325)
       at common.caching.test.CachingTestCase.testBasicCaching(CachingTestCase.java:182)
       at common.caching.test.CachingTestCase.runTests(CachingTestCase.java:99)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)
common.caching.CachingException[super = [ cause =  ]
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:356)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:325)
E
Time: 0.406
There was 1 error:
       at common.caching.test.CachingTestCase.testBasicCaching(CachingTestCase.java:182)
       at common.caching.test.CachingTestCase.runTests(CachingTestCase.java:99)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)
1) runTests(common.caching.test.CachingTestCase)common.caching.CachingException[super
= [ cause = Error in putting object into cache ]
       at common.caching.test.CachingTestCase.testBasicCaching(CachingTestCase.java:188)
       at common.caching.test.CachingTestCase.runTests(CachingTestCase.java:99)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)
Caused by: common.caching.CachingException[super = [ cause =  ]
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:356)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:325)
       at common.caching.test.CachingTestCase.testBasicCaching(CachingTestCase.java:182)
       ... 12 more
Caused by:
common.caching.CachingException[super = [ cause =  ]
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:356)
       at common.caching.BaseCacheManager.putCacheObject(BaseCacheManager.java:325)
       at common.caching.test.CachingTestCase.testBasicCaching(CachingTestCase.java:182)
       at common.caching.test.CachingTestCase.runTests(CachingTestCase.java:99)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:41)

FAILURES!!!
Tests run: 1,  Failures: 0,  Errors: 1



please provide solution to my problem.....

Thanks & Regards
Sambasiva Reddy.
Cognizant Technology Solutions.

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


Mime
View raw message