jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garth Patil" <garthpa...@hotmail.com>
Subject RE: java.lang.InterruptedException on dispose()
Date Mon, 22 Aug 2005 19:45:49 GMT
jcs-1.2.6.5 (the current jar from the repository)
giving it more time to dispose seems to do the trick. thanks for your help.

>From: "Smuts, Aaron" <Aaron.Smuts@travelocity.com>
>Reply-To: "JCS Users List" <jcs-users@jakarta.apache.org>
>To: "JCS Users List" <jcs-users@jakarta.apache.org>
>Subject: RE: java.lang.InterruptedException on dispose()
>Date: Mon, 22 Aug 2005 08:57:48 -0500
>
>What version of jcs are you using?
>
>The disk cache probably couldn't complete the defragmentation in time.
>This is expected in some situations.  There is a way to extend the
>amount of time the disk cache is allowed to work before its queue is
>destroyed.
>
>#This is in seconds
>jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60
>
>Aaron
>
> > -----Original Message-----
> > From: Garth Patil [mailto:garthpatil@hotmail.com]
> > Sent: Saturday, August 20, 2005 3:03 PM
> > To: jcs-users@jakarta.apache.org
> > Subject: 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.CompositeCacheAttribut
>es
> > jcs.default.cacheattributes.MaxObjects=1000
> >
>jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
>.l
> > ru.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.IndexedDiskCacheF
>ac
> > tory
> >
>jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe
>dD
> > iskCacheAttributes
> > 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$WriterLoc
>k.
> > acquire(Unknown
> > Source)
> >         at
> >
>org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedD
>is
> > kCache.java:356)
> >         at
> >
>org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu
>t(
> > AbstractDiskCache.java:548)
> >         at
> >
>org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav
>a:
> > 652)
> >         at
> >
>org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ
>ue
> > ue.java:567)
> >         at
> >
>org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav
>a:
> > 537)
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>



---------------------------------------------------------------------
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