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

JFrog JIRA | Alexander Fisher | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Hi When we enable parallel builds (add --threads 4 to the maven goals), our build fails with the following. {noformat} [ERROR] Internal error: java.util.ConcurrentModificationException -> [Help 1] 22-Nov-2010 12:58:04 org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22-Nov-2010 12:58:04 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22-Nov-2010 12:58:04 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 22-Nov-2010 12:58:04 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 22-Nov-2010 12:58:04 at java.lang.Thread.run(Thread.java:619) 22-Nov-2010 12:58:04 Caused by: java.util.ConcurrentModificationException 22-Nov-2010 12:58:04 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) 22-Nov-2010 12:58:04 at java.util.HashMap$KeyIterator.next(HashMap.java:828) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.addDependenciesToCurrentModule(BuildInfoRecorder.java:481) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:380) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:366) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:335) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:212) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:68) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) 22-Nov-2010 12:58:04 ... 10 more {noformat} It would be great if we could use the plugin with parallels builds as we've seen our project build in just over half the time when running maven outside of bamboo. Kind Regards, Alex

    JFrog JIRA | 6 years ago | Alexander Fisher
    org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException
  2. 0

    Hi When we enable parallel builds (add --threads 4 to the maven goals), our build fails with the following. {noformat} [ERROR] Internal error: java.util.ConcurrentModificationException -> [Help 1] 22-Nov-2010 12:58:04 org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22-Nov-2010 12:58:04 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22-Nov-2010 12:58:04 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22-Nov-2010 12:58:04 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 22-Nov-2010 12:58:04 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 22-Nov-2010 12:58:04 at java.lang.Thread.run(Thread.java:619) 22-Nov-2010 12:58:04 Caused by: java.util.ConcurrentModificationException 22-Nov-2010 12:58:04 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) 22-Nov-2010 12:58:04 at java.util.HashMap$KeyIterator.next(HashMap.java:828) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.addDependenciesToCurrentModule(BuildInfoRecorder.java:481) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:380) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:366) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:335) 22-Nov-2010 12:58:04 at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:212) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:68) 22-Nov-2010 12:58:04 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) 22-Nov-2010 12:58:04 ... 10 more {noformat} It would be great if we could use the plugin with parallels builds as we've seen our project build in just over half the time when running maven outside of bamboo. Kind Regards, Alex

    JFrog JIRA | 6 years ago | Alexander Fisher
    org.apache.maven.InternalErrorException: Internal error: java.util.ConcurrentModificationException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    ConcurrentModification exception in timer thread

    GitHub | 5 years ago | tfmorris
    java.util.ConcurrentModificationException

  1. iridic 2 times, last 5 months ago
  2. franky li 1 times, last 6 months ago
  3. bpbhat77 2 times, last 7 months ago
  4. asvid 2 times, last 11 months ago
  5. ben.slama.jihed 19 times, last 10 months ago
10 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.HashMap$HashIterator.nextEntry()
  2. Java RT
    HashMap$KeyIterator.next
    1. java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
    2. java.util.HashMap$KeyIterator.next(HashMap.java:828)
    2 frames
  3. org.jfrog.build
    BuildInfoRecorder.projectSucceeded
    1. org.jfrog.build.extractor.maven.BuildInfoRecorder.addDependenciesToCurrentModule(BuildInfoRecorder.java:481)
    2. org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:380)
    3. org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:366)
    4. org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:335)
    5. org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:212)
    5 frames
  4. Maven Core
    LifecycleThreadedBuilder$1.call
    1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:68)
    2. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91)
    3. org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
    4. org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164)
    4 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    3. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    4. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    5. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    8. java.lang.Thread.run(Thread.java:619)
    8 frames