Dennis Reed created JBCACHE-1632:
------------------------------------
Summary: ConcurrentModificationException in printCacheDetails
Key: JBCACHE-1632
URL:
https://issues.jboss.org/browse/JBCACHE-1632
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Locking
Affects Versions: 3.2.8.GA
Reporter: Dennis Reed
Assignee: Dennis Reed
printCacheDetails does not acquire locks on nodes, so can encounter a
ConcurrentModificationException if another thread modifies the node while it's being
read.
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
at java.util.HashMap$EntryIterator.next(HashMap.java:834)
at java.util.HashMap$EntryIterator.next(HashMap.java:832)
at java.util.AbstractMap.toString(AbstractMap.java:485)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at java.util.AbstractMap.toString(AbstractMap.java:490)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at org.jboss.cache.UnversionedNode.printDetailsInMap(UnversionedNode.java:562)
at org.jboss.cache.UnversionedNode.printDetails(UnversionedNode.java:313)
at org.jboss.cache.UnversionedNode.printDetailsInMap(UnversionedNode.java:566)
at org.jboss.cache.UnversionedNode.printDetails(UnversionedNode.java:313)
at org.jboss.cache.UnversionedNode.printDetailsInMap(UnversionedNode.java:566)
at org.jboss.cache.UnversionedNode.printDetails(UnversionedNode.java:313)
at org.jboss.cache.DataContainerImpl.printDetails(DataContainerImpl.java:502)
at org.jboss.cache.util.CachePrinter.printCacheDetails(CachePrinter.java:56)
at
org.jboss.cache.jmx.CacheJmxWrapper.printCacheDetails(CacheJmxWrapper.java:141)
There do not currently appear to be any other side effects other than the
printCacheDetails call throwing the ConcurrentModificationException.
--
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