[
https://issues.apache.org/jira/browse/JCS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Vandahl resolved JCS-76.
-------------------------------
Resolution: Duplicate
Fix Version/s: jcs-2.0.0
Would you please try out the latest trunk and report your findings.
> Exception when using the cache from different threads (synchronization
> problems)
> --------------------------------------------------------------------------------
>
> Key: JCS-76
> URL: https://issues.apache.org/jira/browse/JCS-76
> Project: Commons JCS
> Issue Type: Bug
> Components: Composite Cache
> Reporter: Alexander Sofronov
> Assignee: Thomas Vandahl
> Fix For: jcs-2.0.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira