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

          jmkgreen James Green created issue -
          centic centic made changes -
          Field Original Value New Value
          Assignee Ognjen Bubalo [ ognjenb ] centic [ centic ]
          centic centic made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          mheinzerling Martin Heinzerling made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 156050 ] JNJira + In-Review [ 207781 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: