Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28686

ArrayIndexOutOfBoundsException in JACOCO coverage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • jacoco-plugin

      ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception
      java.io.IOException: Error while analyzing class /u1/user/.jenkins/master/jobs/ODS/builds/2015-06-01_09-08-41/jacoco/classes/src/com/bfm/opportunity/util/AssetEnrichment.class.
      at org.jacoco.core.analysis.Analyzer.analyzerError(Analyzer.java:150)
      at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:144)
      at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:175)
      at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208)
      at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:126)
      at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:133)
      at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102)
      at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:291)
      at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:273)
      at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:371)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      at hudson.model.Run.execute(Run.java:1783)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 22
      at org.jacoco.core.internal.analysis.MethodAnalyzer.addProbe(MethodAnalyzer.java:288)
      at org.jacoco.core.internal.analysis.MethodAnalyzer.visitInsnWithProbe(MethodAnalyzer.java:224)
      at org.jacoco.core.internal.flow.MethodProbesAdapter.visitInsn(MethodProbesAdapter.java:102)
      at org.objectweb.asm.tree.InsnNode.accept(Unknown Source)
      at org.objectweb.asm.tree.InsnList.accept(Unknown Source)
      at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
      at org.jacoco.core.internal.flow.ClassProbesAdapter$2.visitEnd(ClassProbesAdapter.java:89)
      at org.objectweb.asm.ClassReader.b(Unknown Source)
      at org.objectweb.asm.ClassReader.accept(Unknown Source)
      at org.objectweb.asm.ClassReader.accept(Unknown Source)
      at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:107)
      at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142)
      ... 17 more
      Finished: FAILURE

      There was a ticket for the similar issue (JENKINS-27088) where jacoco 0.7.3 was being used with JaCoCo plugin 1.0.18 and solution(as per ticket) was to upstep jacoco version, while in my case jacoco(0.7.4.201502262128) & jacoco plugin(1.0.19) both are updated.

            ognjenb Ognjen Bubalo
            skatiyar Saurabh Katiyar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: