You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by "Alexander Sofronov (JIRA)" <ji...@apache.org> on 2010/04/29 11:51:53 UTC

[jira] Created: (JCS-76) Exception when using the cache from different threads (synchronization problems)

Exception when using the cache from different threads (synchronization problems)
--------------------------------------------------------------------------------

                 Key: JCS-76
                 URL: https://issues.apache.org/jira/browse/JCS-76
             Project: 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.
-
You can reply to this email to add a comment to the issue online.