Uploaded image for project: 'Bamboo Artifactory Plug-in'
  1. Bamboo Artifactory Plug-in
  2. BAP-254

Make bamboo artifactory plugin thread safe

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7.6, 1.7.7
    • Fix Version/s: 1.8.0
    • Labels:
      None
    • Environment:

      bamboo 5.7.2

      Description

      we have a parallel maven build. In about 1 of 6 runs we got a ConcurrentModificationException

      [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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eyalbe Eyal Ben Moshe (Inactive)
                Reporter:
                stachel Torsten Stach
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: