Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
Description
Recently we switched our product into parallel mode, so now we are using JCS cache from different threads. And it looks like there are some problems with synchronization inside JCS, sometimes we are getting the following error:
Caused by: java.lang.Error: update: last is null!
at org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache.spoolLastElement(AbstractDoulbeLinkedListMemoryCache.java:280)
at org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache.spoolIfNeeded(AbstractDoulbeLinkedListMemoryCache.java:154)
at org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache.update(AbstractDoulbeLinkedListMemoryCache.java:106)
at org.apache.jcs.engine.control.CompositeCache.copyAuxiliaryRetrievedItemToMemory(CompositeCache.java:993)
at org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:566)
at org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:429)
at org.apache.jcs.access.CacheAccess.get(CacheAccess.java:192)