On running tests, we randomly have the following error :
java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.dispose(ThreadSafeComponentManager.java:228) at org.ametys.runtime.test.CocoonWrapper.dispose(CocoonWrapper.java:350) at org.ametys.runtime.test.framework.CocoonHelper.stopApplication(CocoonHelper.java:102) at org.ametys.runtime.test.AbstractRuntimeTestCase._stopApplication(AbstractRuntimeTestCase.java:142) at org.ametys.runtime.test.AbstractRuntimeTestCase.runtimeTearDown(AbstractRuntimeTestCase.java:153)
We are not able to identify where is the problem so the first step is to trace the modifications on the ThreadSafeComponentManager._components class attribute.