jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garth Patil" <garthpa...@hotmail.com>
Subject java.lang.InterruptedException on dispose()
Date Sat, 20 Aug 2005 19:02:58 GMT
Hi,
I get an exception when trying to dispose a cache. It happens 
intermittently. Any ideas?

Here is the code:
JCS jcs = JCS.getInstance("someCache");
//some puts and gets
jcs.dispose();


Here is the config i'm using in cache.ccf:
#default
jcs.default=DC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=true
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true
#disk cache
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=cache
jcs.auxiliary.DC.attributes.MaxKeySize=10000


Here is the exception:
861119 [CacheEventQueue.QProcessor-financialCache] ERROR 
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache  - Failure updating 
element, cacheName: someCache, key: someKey
java.lang.InterruptedException
        at 
EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock$WriterLock.acquire(Unknown

Source)
        at 
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedDiskCache.java:356)
        at 
org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePut(AbstractDiskCache.java:548)
        at 
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.java:652)
        at 
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQueue.java:567)
        at 
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.java:537)



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


Mime
View raw message