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.

Jenkins JIRA | Saurabh Katiyar | 2 years ago
  1. 0

    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.

    Jenkins JIRA | 2 years ago | Saurabh Katiyar
    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.
  2. 0

    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.

    Jenkins JIRA | 2 years ago | Saurabh Katiyar
    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.
  3. 0

    JaCoCo report fails in Jenkins: java.lang.ArrayIndexOutOfBoundsException

    Stack Overflow | 2 years ago | Lydia Ralph
    java.io.IOException: Error while analyzing class E:\Jenkins\jobs\Validation - Test Cases\builds\2015-02-23_15-59-44\jacoco\classes\org\gosh\validation\filters\ModifiedFileListFilter.class.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java - JaCoCo report fails in Jenkins: java.lang.ArrayIndexOutOfBoundsException

    howtobuildsoftware.com | 11 months ago
    java.io.IOException: Error while analyzing class E:\Jenkins\jobs\Validation - Test Cases\builds\2015-02-23_15-59-44\jacoco\classes\org\gosh\validation\filters\ModifiedFileListFilter.class.
  6. 0

    [JENKINS-23579] jacoco 1.0.14 & 1.0.15 failed in analyzing some class file produced by jacoco-maven-plugin:0.6.2.201302030002 - Jenkins JIRA

    jenkins-ci.org | 5 months ago
    java.io.IOException: Error while analyzing class /var/lib/jenkins/jobs/optbaby/builds/99/jacoco/classes/service/ExamService.class.

    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.lang.ArrayIndexOutOfBoundsException

      22

      at org.jacoco.core.internal.analysis.MethodAnalyzer.addProbe()
    2. JaCoCo :: Core
      MethodProbesAdapter.visitInsn
      1. org.jacoco.core.internal.analysis.MethodAnalyzer.addProbe(MethodAnalyzer.java:288)
      2. org.jacoco.core.internal.analysis.MethodAnalyzer.visitInsnWithProbe(MethodAnalyzer.java:224)
      3. org.jacoco.core.internal.flow.MethodProbesAdapter.visitInsn(MethodProbesAdapter.java:102)
      3 frames
    3. Felix iPOJO
      MethodNode.accept
      1. org.objectweb.asm.tree.InsnNode.accept(Unknown Source)
      2. org.objectweb.asm.tree.InsnList.accept(Unknown Source)
      3. org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
      3 frames
    4. JaCoCo :: Core
      ClassProbesAdapter$2.visitEnd
      1. org.jacoco.core.internal.flow.ClassProbesAdapter$2.visitEnd(ClassProbesAdapter.java:89)
      1 frame
    5. Felix iPOJO
      ClassReader.accept
      1. org.objectweb.asm.ClassReader.b(Unknown Source)
      2. org.objectweb.asm.ClassReader.accept(Unknown Source)
      3. org.objectweb.asm.ClassReader.accept(Unknown Source)
      3 frames
    6. JaCoCo :: Core
      Analyzer.analyzeAll
      1. org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:107)
      2. org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142)
      3. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:175)
      4. org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208)
      4 frames
    7. hudson.plugins.jacoco
      JacocoPublisher.perform
      1. hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:126)
      2. hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:133)
      3. hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102)
      4. hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:291)
      5. hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:273)
      6. hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:371)
      6 frames
    8. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      6. hudson.model.Run.execute(Run.java:1783)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:89)
      9. hudson.model.Executor.run(Executor.java:240)
      9 frames