You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Vandahl (JIRA)" <ji...@apache.org> on 2012/08/04 17:04:02 UTC
[jira] [Commented] (JCS-76) Exception when using the cache from
different threads (synchronization problems)
[ https://issues.apache.org/jira/browse/JCS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428620#comment-13428620 ]
Thomas Vandahl commented on JCS-76:
-----------------------------------
Any more information in what environment this happens?
> 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: Aaron Smuts
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira