You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by Amy Wang <am...@intersperse.com> on 2003/09/10 04:40:35 UTC
RE: Errors from LRUMemoryCache
In case anybody run into the same issue.
This problem is fixed by putting a 'synchronized' statement in
LRUMemorycache.java
public void update(ICacheElement ce) throws IOException {
// Asynchronisly create a MemoryElement
ce.getElementAttributes().setLastAccessTimeNow();
MemoryElementDescriptor old = null;
// the following operation has to be atomic
synchronized (this) {
addFirst(ce);
old =
(MemoryElementDescriptor)map.put(first.ce.getKey(), first);
}
.....
}
this mailing list is so quieeeeeeeeeet...
> -----Original Message-----
> From: Amy Wang [mailto:amy.wang@intersperse.com]
> Sent: Thursday, August 21, 2003 6:52 PM
> To: 'Turbine JCS Users List'; 'Turbine JCS Developers List'
> Subject: Errors from LRUMemoryCache
>
>
> Does anyone know what's happening here?
> I got bunch of exceptions from LRUMemoryCache.
> There is no object serialized to the disk cache. After this
> error, many
> objects are lost.
> What would have caused this problem?
> Much appreciated.
>
> 22:29:50,375 ERROR [LRUMemoryCache] key hashcode=1318941830
> 22:29:50,375 ERROR [LRUMemoryCache] key
> toString=omi.wm.is.IsService:host=hqdeva
> pp004.intersperse.com,pkg=MultipleServices900,port=5555,svc=se
> rvice18:se
> rvic
> e18Copy2
> 22:29:50,437 ERROR [LRUMemoryCache]
> verifycache[hqdevapp002_replicaRegionObjectM
> ap]: map does not contain value :
> org.apache.jcs.engine.memory.lru.MemoryElement
> Descriptor@1719f30
> 22:29:51,265 ERROR [LRUMemoryCache]
> verifycache[hqdevapp002_replicaRegionObjectM
> ap]: key not found in list : Keys
> 22:29:51,281 ERROR [LRUMemoryCache] verifycache: map contains key
> 22:29:51,468 ERROR [LRUMemoryCache]
> verifycache[hqdevapp002_replicaRegionObjectM
> ap]: map does not contain key :
> omi.wm.is.IsService:host=hqdevapp004.intersperse
> .com,pkg=MultipleServices900,port=5555,svc=service18:servi
> ce18Copy2
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org