NPE in TimeoutMemoryStore under heavy load
------------------------------------------
Key: SM-2148
URL: https://issues.apache.org/jira/browse/SM-2148
Project: ServiceMix
Issue Type: Bug
Components: servicemix-utils
Affects Versions: servicemix-utils-1.5.0
Reporter: Gert Vanthienen
Assignee: Gert Vanthienen
Fix For: servicemix-utils-1.6.0
When using the TimeoutMemoryStore in a multithreaded environment, you can
occasionally run into this NPE:
{noformat}
java.lang.NullPointerException
at
org.apache.servicemix.store.memory.TimeoutMemoryStore$Entry.access$200(TimeoutMemoryStore.java:77)
at
org.apache.servicemix.store.memory.TimeoutMemoryStore.evict(TimeoutMemoryStore.java:66)
at
org.apache.servicemix.store.memory.TimeoutMemoryStore.load(TimeoutMemoryStore.java:57)
{noformat}
This happens when the evict() method is iterating over the contents of the data
map and is trying to access a store entry that has been removed by another
thread in the meanwhile.
--
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