ConcurrentModificationException

Hello,

running my TestNG class IDEA reports the following exception in status bar with the red symbol:

java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
at java.util.AbstractList$Itr.next(AbstractList.java:420)
at java.util.SubList$1.next(AbstractList.java:799)
at java.util.AbstractCollection.toArray(AbstractCollection.java:176)
at java.util.ArrayList.]]>(ArrayList.java:137)
at com.theoryinpractice.testng.TestNGConsoleView.getChunksSinceMark(TestNGConsoleView.java:78)
at com.theoryinpractice.testng.TestNGConsoleView.addTestResult(TestNGConsoleView.java:60)
at com.theoryinpractice.testng.model.TestNGRemoteListener.onTestSuccess(TestNGRemoteListener.java:42)
at com.theoryinpractice.testng.model.IDEARemoteTestRunnerClient$5.run(IDEARemoteTestRunnerClient.java:81)
at com.intellij.openapi.application.impl.LaterInvocatorEx$1.run(LaterInvocatorEx.java:1)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:14)


What could be the problem?

Thanks, Martin

0
Avatar
Permanently deleted user

If you author of plugin, please check that access to ArrayList is synchronized. It seems to somewhere call add, or remove method while the same list iteraten in other thread.

0

This is fixed in the next version, thanks for the report!

0

请先登录再写评论。