Hi sir,
I configured cache.ccf in classpath,but still error coming 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.
On 10/19/06, Al Forbes <[EMAIL PROTECTED]> wrote:
Hi,
Try this:
http://sindome.org/JCS/JCSRemoteCacheHowTo.doc
It's not from me, but it did help me to get started. Otherwise get the
source and look through the examples and unit tests.
Regards
Al
On 18/10/06, Sambasiva Reddy <[EMAIL PROTECTED]> wrote:
>
> Can anybody tell which book is best for JCS,if any please tell to me
> thank you.
>
> ---------------------------------------------------------------------
> 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]