org.apache.maven.InternalErrorException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Alexander Fisher,
  • 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
    via by Alexander Fisher,
    • 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:164) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:619) Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) at java.util.HashMap$KeyIterator.next(HashMap.java:828) at org.jfrog.build.extractor.maven.BuildInfoRecorder.addDependenciesToCurrentModule(BuildInfoRecorder.java:481) at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:380) at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:366) at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:335) at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:212) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:68) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) ... 10 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    iridic
    2 times, last one,
    franky li
    1 times, last one,
    bpbhat77
    2 times, last one,
    21 more bugmates