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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via javacodegeeks.com by Unknown author

Causes : The Collection is internally modified, while a thread is iterating over it. OR after the creation of an iterator, the Collection is internally modified by any method other than the iterator’s own methods for removal and addition.

,
via oracle.com by Unknown author

In order to avoid more than one threads accessing or modifying the same object, you can synchronize them over the object, in order to allow only one thread to manipulate it over time.

Solutions on the web

via JFrog JIRA by Torsten Stach, 1 year ago
Internal error: java.util.ConcurrentModificationException
via JFrog JIRA by Torsten Stach, 1 year ago
Internal error: java.util.ConcurrentModificationException
via Jenkins JIRA by Andreas Schöneck, 1 year ago
Internal error: java.util.ConcurrentModificationException
via Jenkins JIRA by Andreas Schöneck, 1 year ago
Internal error: java.util.ConcurrentModificationException
via Google Groups by Christoph Kutzinski, 4 months ago
via JFrog JIRA by Alexander Fisher, 1 year ago
Internal error: java.util.ConcurrentModificationException
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 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)
at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:169)
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)

Users with the same issue

Once, 2 weeks ago
Once, 4 weeks ago
16 times, 1 month ago
Once, 1 month ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.