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

Crash publishing jacoco report across all projects with 1.0.15

    Details

    • Similar Issues:

      Description

      Using Jenkins 1.567 on Linux. Each project is Maven 3 based and publishes jacoco coverage reports.

      Since upgrading plugins yesterday we're seeing a crash whenever the plugin tries to run. Here's one example:

      [JaCoCo plugin] Collecting JaCoCo coverage data...
      [JaCoCo plugin] */.exec;/classes;*/src/main/java; locations are configured
      [JaCoCo plugin] Number of found exec files: 3
      [JaCoCo plugin] Saving matched execfiles: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/jacoco.exec
      [JaCoCo plugin] Saving matched class directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/mjls/WEB-INF/classes
      [JaCoCo plugin] Saving matched source directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/src/main/java
      [JaCoCo plugin] Loading inclusions files..
      [JaCoCo plugin] inclusions: []
      [JaCoCo plugin] exclusions: []
      ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception
      java.io.IOException: Error while analyzing class /var/lib/jenkins/jobs/mjls-parent/builds/2014-06-13_12-58-21/jacoco/classes/com/mjog/mjls/attachment/DeletedAttachmentToSaas.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:130)
      at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137)
      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$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
      at hudson.model.Run.execute(Run.java:1735)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:234)
      Caused by: java.lang.IllegalArgumentException
      at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
      at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:37)
      at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:27)
      at org.jacoco.core.internal.analysis.ClassAnalyzer.<init>(ClassAnalyzer.java:47)
      at org.jacoco.core.analysis.Analyzer$1.<init>(Analyzer.java:90)
      at org.jacoco.core.analysis.Analyzer.createAnalyzingVisitor(Analyzer.java:87)
      at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:105)
      at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142)
      ... 17 more
      Finished: FAILURE

      Similar stacktraces can be found across our other projects. I've updated the jacoco plugin within the project to the latest 0.7.1 with no change. The build itself is successful - it's just the publishing of the report that fails.

        Attachments

          Activity

          Hide
          centic centic added a comment -

          It seems if some other plugin already pulls in newer asm, it worked, only if no other plugin uses asm, then this can show up.

          We now updated the dependency on asm to 5.0.1 and also updated the dependency from org.kohsuke.asm4 to asm5, version 1.0.16 will contain this fix.

          Show
          centic centic added a comment - It seems if some other plugin already pulls in newer asm, it worked, only if no other plugin uses asm, then this can show up. We now updated the dependency on asm to 5.0.1 and also updated the dependency from org.kohsuke.asm4 to asm5, version 1.0.16 will contain this fix.
          Hide
          fmiguelez Fernando Miguelez added a comment -

          Same error here right after updating Jacoco Plugin today (to version 1.0.15). We use Jenkins 1.568 on Linux. A downgrade to version 1.0.14 solved our problem.

          Detail of the crash:

          [JaCoCo plugin] Collecting JaCoCo coverage data...
          [JaCoCo plugin] */.exec;/classes;*/src/main/java; locations are configured
          [JaCoCo plugin] Number of found exec files: 1
          [JaCoCo plugin] Saving matched execfiles: /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/workspace/target/jacoco.exec
          [JaCoCo plugin] Saving matched class directories: /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/workspace/target/classes
          [JaCoCo plugin] Saving matched source directories: /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/workspace/src/main/java
          [JaCoCo plugin] Loading inclusions files..
          [JaCoCo plugin] inclusions: []
          [JaCoCo plugin] exclusions: []
          ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception
          java.io.IOException: Error while analyzing class /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/builds/2014-06-18_09-00-00/jacoco/classes/oip/foundation/core/ejb/integration/mdb/CollectionReceiverBean.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:130)
          at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137)
          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$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
          at hudson.model.Run.execute(Run.java:1757)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:234)
          Caused by: java.lang.IllegalArgumentException
          at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
          at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:37)
          at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:27)
          at org.jacoco.core.internal.analysis.ClassAnalyzer.<init>(ClassAnalyzer.java:47)
          at org.jacoco.core.analysis.Analyzer$1.<init>(Analyzer.java:90)
          at org.jacoco.core.analysis.Analyzer.createAnalyzingVisitor(Analyzer.java:87)
          at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:105)
          at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142)
          at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:176)
          at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208)
          at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:130)
          at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137)
          at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102)
          at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:292)
          at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:273)
          at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:371)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
          at hudson.model.Run.execute(Run.java:1757)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          ... 2 more

          Show
          fmiguelez Fernando Miguelez added a comment - Same error here right after updating Jacoco Plugin today (to version 1.0.15). We use Jenkins 1.568 on Linux. A downgrade to version 1.0.14 solved our problem. Detail of the crash: [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] * / .exec; /classes; */src/main/java; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/workspace/target/jacoco.exec [JaCoCo plugin] Saving matched class directories: /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/workspace/target/classes [JaCoCo plugin] Saving matched source directories: /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/workspace/src/main/java [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.io.IOException: Error while analyzing class /home/appusr/.jenkins/jobs/oip.foundation.core.ejb-ITEST/builds/2014-06-18_09-00-00/jacoco/classes/oip/foundation/core/ejb/integration/mdb/CollectionReceiverBean.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:130) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137) 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$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Caused by: java.lang.IllegalArgumentException at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:37) at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:27) at org.jacoco.core.internal.analysis.ClassAnalyzer.<init>(ClassAnalyzer.java:47) at org.jacoco.core.analysis.Analyzer$1.<init>(Analyzer.java:90) at org.jacoco.core.analysis.Analyzer.createAnalyzingVisitor(Analyzer.java:87) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:105) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:176) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:130) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:292) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:273) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:371) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) ... 2 more
          Hide
          lz1asl lz1asl added a comment -

          It could be nice to be able to downgrade from the update center until this is resolved. Manually building the 1.0.14 tag and uploading to CloudBees seems not possible at the moment.

          Show
          lz1asl lz1asl added a comment - It could be nice to be able to downgrade from the update center until this is resolved. Manually building the 1.0.14 tag and uploading to CloudBees seems not possible at the moment.
          Hide
          mahanare harinath mallepally added a comment -

          yes downgrading to 1.0.14 worked fine for me too.

          Show
          mahanare harinath mallepally added a comment - yes downgrading to 1.0.14 worked fine for me too.
          Hide
          jmkgreen James Green added a comment -

          Downgraded to 1.0.14 and it works fine:

          [JaCoCo plugin] Collecting JaCoCo coverage data...
          [JaCoCo plugin] */.exec;/classes;*/src/main/java; locations are configured
          [JaCoCo plugin] Number of found exec files: 3
          [JaCoCo plugin] Saving matched execfiles: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/jacoco.exec
          [JaCoCo plugin] Saving matched class directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/mjls/WEB-INF/classes
          [JaCoCo plugin] Saving matched source directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/src/main/java
          [JaCoCo plugin] Loading inclusions files..
          [JaCoCo plugin] inclusions: []
          [JaCoCo plugin] exclusions: []
          [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=0, minMethod=0, maxMethod=0, minLine=0, maxLine=0, minBranch=0, maxBranch=0, minInstruction=0, maxInstruction=0, minComplexity=0, maxComplexity=0]
          [JaCoCo plugin] Publishing the results..
          [JaCoCo plugin] Loading packages..
          [JaCoCo plugin] Done.
          Finished: SUCCESS

          Show
          jmkgreen James Green added a comment - Downgraded to 1.0.14 and it works fine: [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] * / .exec; /classes; */src/main/java; locations are configured [JaCoCo plugin] Number of found exec files: 3 [JaCoCo plugin] Saving matched execfiles: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/jacoco.exec [JaCoCo plugin] Saving matched class directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/mjls/WEB-INF/classes [JaCoCo plugin] Saving matched source directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/src/main/java [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=0, minMethod=0, maxMethod=0, minLine=0, maxLine=0, minBranch=0, maxBranch=0, minInstruction=0, maxInstruction=0, minComplexity=0, maxComplexity=0] [JaCoCo plugin] Publishing the results.. [JaCoCo plugin] Loading packages.. [JaCoCo plugin] Done. Finished: SUCCESS

            People

            • Assignee:
              centic centic
              Reporter:
              jmkgreen James Green
            • Votes:
              14 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: