I thought I had read about this on the mailing list, but I cant find it now,
so maybe I am mistaken. I'm new to JCS and maven, so maybe I am causing the
problem accidently... (I havent even figured out Ant yet- and now there's
maven! :-)
While maven is running the junit tests, I always get an error in
TestDiskCacheConcurrent. Typically, I get a java.lang.OutOfMemoryError.
When this occurs, in the target/test-sandbox/indexed-disk-cache-conc folder
I see that there are files named indexedRegion4.data (size 301KB) and
indexedRegion4.key is empty (0KB). There are other data/key files there
too, but they are all empty.
I am interested in indexRegion4 because on one occasion the test did
complete without an OutOfMemoryError, but it still failed anyway. I found
this info in a file named
target/test-reports/TEST-org.apache.jcs.TestDiskCacheConcurrent.txt:
-------------------------------------------------
Testcase: testIndexedDiskCache3 took 2.641 sec
FAILED
expected:<indexedRegion4 data 2032> but was:<null>
junit.framework.AssertionFailedError: expected:<indexedRegion4 data 2032>
but was:<null>
at
org.apache.jcs.TestDiskCacheConcurrent.runTestForRegion(TestDiskCacheConcurr
ent.java:176)
at
org.apache.jcs.TestDiskCacheConcurrent$3.runTest(TestDiskCacheConcurrent.jav
a:117)
at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:26)
Testcase: testIndexedDiskCache3Testcase: testIndexedDiskCache2 took 3.594
sec
FAILED
expected:<indexedRegion4 data 1099> but was:<null>
junit.framework.AssertionFailedError: expected:<indexedRegion4 data 1099>
but was:<null>
at
org.apache.jcs.TestDiskCacheConcurrent.runTestForRegion(TestDiskCacheConcurr
ent.java:176)
at
org.apache.jcs.TestDiskCacheConcurrent$2.runTest(TestDiskCacheConcurrent.jav
a:109)
at junit.extensions.ActiveTestSuite$1.run(ActiveTestSuite.java:26)
Testcase: testIndexedDiskCache2Testcase: testIndexedDiskCache1 took 7.156
sec
-------------------------------------------------
I downloaded all the messages from the user mailing list, searched them, and
couldnt find this mentioned anywhere. Has anyone else encountered this
before?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]