java - How to trace which HashMap throws ConcurrentModificationException -


in application have several hashmaps. 1 of them throw concurrentmodificationexception every , then. problem not know how trace map throws it, , when concurrentmodification happens. stack trace not show line numbers happens. begin of stack trace looks liks this:

java.util.concurrentmodificationexception @ java.util.hashmap$hashiterator.nextentry(hashmap.java:806) @ java.util.hashmap$valueiterator.next(hashmap.java:838) @ com.parse.parsetraverser.traverseinternal(parsetraverser.java:87) @ com.parse.parsetraverser.traverse(parsetraverser.java:137) @ com.parse.parseobject.collectfetchedobjects(parseobject.java:817) @ com.parse.parseobject.access$700(parseobject.java:49) @ com.parse.parseobject$13.then(parseobject.java:1487) @ com.parse.parseobject$13.then(parseobject.java:1484) @ bolts.task$15.run(task.java:917) @ bolts.boltsexecutors$immediateexecutor.execute(boltsexecutors.java:105) @ bolts.task.completeaftertask(task.java:908) @ bolts.task.continuewithtask(task.java:715) 

if can't evaluate hashmap modified @ same time 2 operations (classic example removal in loop) can use concurrenthashmap.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -