You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Garth Patil <ga...@hotmail.com> on 2005/08/20 21:02:58 UTC
java.lang.InterruptedException on dispose()
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