ConcurrentModificationException in ConcurrentReporterManager
------------------------------------------------------------

                 Key: SUREFIRE-710
                 URL: http://jira.codehaus.org/browse/SUREFIRE-710
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.7+ (parallel) support
    Affects Versions: 2.7.2
         Environment: $ mvn -version
Apache Maven 3.0.2 (r1056850; 2011-01-08 19:58:10-0500)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.35-25-generic", arch: "amd64", family: "unix"

            Reporter: Mark Renouf


Captured using custom RunListener, tracing to a file:

2011-02-28-17:05:30.377 TEST_FAILED   - Test mechanism: 
java.util.ConcurrentModificationException
2011-02-28-17:05:30.378 java.lang.RuntimeException: 
java.util.ConcurrentModificationException
        at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:91)
        at 
org.apache.maven.surefire.junitcore.TestSet.setAllScheduled(TestSet.java:134)
        at 
org.apache.maven.surefire.junitcore.ClassesParallelRunListener.checkIfTestSetCanBeReported(ClassesParallelRunListener.java:47)
        at 
org.apache.maven.surefire.junitcore.ConcurrentReporterManager.testStarting(ConcurrentReporterManager.java:123)
        at 
org.apache.maven.surefire.common.junit4.JUnit4RunListener.testStarted(JUnit4RunListener.java:79)
        at 
org.junit.runner.notification.RunNotifier$3.notifyListener(RunNotifier.java:87)
        at 
org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:41)
        at 
org.junit.runner.notification.RunNotifier.fireTestStarted(RunNotifier.java:84)
        at 
org.junit.internal.runners.model.EachTestNotifier.fireTestStarted(EachTestNotifier.java:41)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:74)
        at 
com.itasoftware.##############.testrunner.CachedIntegrationTestRunner.runChild(CachedIntegrationTestRunner.java:146)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at 
org.apache.maven.surefire.junitcore.SynchronousRunner.schedule(SynchronousRunner.java:7)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:24)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.util.ConcurrentModificationException
        at 
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
        at java.util.AbstractList$Itr.next(AbstractList.java:343)
        at 
org.apache.maven.surefire.junitcore.LogicalStream.writeDetails(LogicalStream.java:85)
        at 
org.apache.maven.surefire.junitcore.TestMethod.replay(TestMethod.java:101)
        at org.apache.maven.surefire.junitcore.TestSet.replay(TestSet.java:83)
        ... 26 more




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to