org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException

JFrog JIRA | Tomas Kolda | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I am using build info plugin and it fails in parallel mode. Is the plugin ready to be used in Maven parallel build? It is marked as threadSafe... <plugin> <groupId>org.jfrog.buildinfo</groupId> <artifactId>artifactory-maven-plugin</artifactId> <version>2.2.3</version> <inherited>false</inherited> <executions> <execution> <id>build-info</id> <goals> <goal>publish</goal> </goals> <configuration> ... </configuration> </execution> </executions> </plugin> I randomly get exception: 00:00:33 [ERROR] Internal error: java.util.ConcurrentModificationException -> [Help 1] 00:00:33 org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException 00:00:33 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:142) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:169) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:165) 00:00:33 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 00:00:33 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 00:00:33 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 00:00:33 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 00:00:33 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 00:00:33 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 00:00:33 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 00:00:33 at java.lang.Thread.run(Thread.java:724) 00:00:33 Caused by: java.util.ConcurrentModificationException 00:00:33 at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819) 00:00:33 at java.util.ArrayList$Itr.next(ArrayList.java:791) 00:00:33 at com.google.common.collect.Iterators$7.computeNext(Iterators.java:615) 00:00:33 at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140) 00:00:33 at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135) 00:00:33 at com.google.common.collect.Iterators.find(Iterators.java:700) 00:00:33 at com.google.common.collect.Iterables.find(Iterables.java:585) 00:00:33 at org.jfrog.build.api.builder.BuildInfoMavenBuilder.findModule(BuildInfoMavenBuilder.java:365) 00:00:33 at org.jfrog.build.api.builder.BuildInfoMavenBuilder.mergeModule(BuildInfoMavenBuilder.java:354) 00:00:33 at org.jfrog.build.api.builder.BuildInfoMavenBuilder.addModule(BuildInfoMavenBuilder.java:349) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:421) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:404) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:367) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:182) 00:00:33 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) 00:00:33 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91)

    JFrog JIRA | 3 years ago | Tomas Kolda
    org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException
  2. 0

    I am using build info plugin and it fails in parallel mode. Is the plugin ready to be used in Maven parallel build? It is marked as threadSafe... <plugin> <groupId>org.jfrog.buildinfo</groupId> <artifactId>artifactory-maven-plugin</artifactId> <version>2.2.3</version> <inherited>false</inherited> <executions> <execution> <id>build-info</id> <goals> <goal>publish</goal> </goals> <configuration> ... </configuration> </execution> </executions> </plugin> I randomly get exception: 00:00:33 [ERROR] Internal error: java.util.ConcurrentModificationException -> [Help 1] 00:00:33 org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException 00:00:33 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:142) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:169) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:165) 00:00:33 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 00:00:33 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 00:00:33 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 00:00:33 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 00:00:33 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 00:00:33 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 00:00:33 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 00:00:33 at java.lang.Thread.run(Thread.java:724) 00:00:33 Caused by: java.util.ConcurrentModificationException 00:00:33 at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819) 00:00:33 at java.util.ArrayList$Itr.next(ArrayList.java:791) 00:00:33 at com.google.common.collect.Iterators$7.computeNext(Iterators.java:615) 00:00:33 at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140) 00:00:33 at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135) 00:00:33 at com.google.common.collect.Iterators.find(Iterators.java:700) 00:00:33 at com.google.common.collect.Iterables.find(Iterables.java:585) 00:00:33 at org.jfrog.build.api.builder.BuildInfoMavenBuilder.findModule(BuildInfoMavenBuilder.java:365) 00:00:33 at org.jfrog.build.api.builder.BuildInfoMavenBuilder.mergeModule(BuildInfoMavenBuilder.java:354) 00:00:33 at org.jfrog.build.api.builder.BuildInfoMavenBuilder.addModule(BuildInfoMavenBuilder.java:349) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:421) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:404) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:367) 00:00:33 at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:182) 00:00:33 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) 00:00:33 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 00:00:33 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91)

    JFrog JIRA | 3 years ago | Tomas Kolda
    org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException
  3. 0

    [BI-179] Build fails in parallel mode - JFrog JIRA

    jfrog.com | 3 months ago
    org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When running parallel builds, the artifactory BuildInfo Builder encounters a {{ConcurrentModificationException}}. Partial logs {noformat} [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.714s (Wall Clock) [INFO] Finished at: Wed Aug 20 09:25:12 CEST 2014 [INFO] Final Memory: 43M/368M [INFO] ------------------------------------------------------------------------ [ERROR] Internal error: java.util.ConcurrentModificationException -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:142) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:169) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:165) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:886) at java.util.ArrayList$Itr.next(ArrayList.java:836) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:648) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.Iterators.find(Iterators.java:738) at com.google.common.collect.Iterables.find(Iterables.java:656) at org.jfrog.build.api.builder.BuildInfoMavenBuilder.findModule(BuildInfoMavenBuilder.java:365) at org.jfrog.build.api.builder.BuildInfoMavenBuilder.mergeModule(BuildInfoMavenBuilder.java:354) at org.jfrog.build.api.builder.BuildInfoMavenBuilder.addModule(BuildInfoMavenBuilder.java:349) at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:427) at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:410) at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:367) at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:182) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) ... 8 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException {noformat} This causes the builds to fail unexpectedly and happens in a non-deterministic manner.

    Jenkins JIRA | 3 years ago | Andreas Schöneck
    org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException
  6. 0

    we have a parallel maven build. In about 1 of 6 runs we got a ConcurrentModificationException {code} [ERROR] Internal error: java.util.ConcurrentModificationException -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:163) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859) at java.util.ArrayList$Itr.next(ArrayList.java:831) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) at com.google.common.collect.Iterators.find(Iterators.java:729) at com.google.common.collect.Iterables.find(Iterables.java:649) at org.jfrog.build.api.builder.BuildInfoMavenBuilder.findModule(BuildInfoMavenBuilder.java:332) at org.jfrog.build.api.builder.BuildInfoMavenBuilder.mergeModule(BuildInfoMavenBuilder.java:321) at org.jfrog.build.api.builder.BuildInfoMavenBuilder.addModule(BuildInfoMavenBuilder.java:283) at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:455) at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:439) at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:370) at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:190) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) ... 8 more {code}

    JFrog JIRA | 2 years ago | Torsten Stach
    org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException

  1. SteVio1989 1 times, last 2 weeks ago
  2. derprogger 1 times, last 3 weeks ago
  3. batwalrus76 7 times, last 1 month ago
  4. iferca 2 times, last 3 months ago
  5. serious2monkeys 6 times, last 7 months ago
9 more registered users
30 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.ConcurrentModificationException

    No message provided

    at java.util.ArrayList$Itr.checkForComodification()
  2. Java RT
    ArrayList$Itr.next
    1. java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
    2. java.util.ArrayList$Itr.next(ArrayList.java:791)
    2 frames
  3. Guava
    Iterables.find
    1. com.google.common.collect.Iterators$7.computeNext(Iterators.java:615)
    2. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140)
    3. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135)
    4. com.google.common.collect.Iterators.find(Iterators.java:700)
    5. com.google.common.collect.Iterables.find(Iterables.java:585)
    5 frames
  4. org.jfrog.build
    BuildInfoRecorder.projectSucceeded
    1. org.jfrog.build.api.builder.BuildInfoMavenBuilder.findModule(BuildInfoMavenBuilder.java:365)
    2. org.jfrog.build.api.builder.BuildInfoMavenBuilder.mergeModule(BuildInfoMavenBuilder.java:354)
    3. org.jfrog.build.api.builder.BuildInfoMavenBuilder.addModule(BuildInfoMavenBuilder.java:349)
    4. org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:421)
    5. org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:404)
    6. org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:367)
    7. org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:182)
    7 frames
  5. Maven Core
    LifecycleModuleBuilder.buildProject
    1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74)
    2. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
    3. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91)
    3 frames