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

org.objectweb.asm.ClassReader.accept error

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: jacoco-plugin
    • Labels:
      None
    • Environment:
      Master: OSX Lion
      Slaves: Linux 64 bit, MS Windows 7 32 bit
      Jenkins: ver. 1.447.2-SNAPSHOT
      Jacoco plugin: 1.0.5
    • Similar Issues:

      Description

      When running job on slave this error occurred on slaves. (Linux, MS Windows):

      [JaCoCo plugin] Collecting JaCoCo coverage data...
      [JaCoCo plugin] Saving 1 module information.
      [JaCoCo plugin] ConfigRow [moduleName=jsfsrcDir=jsf/plugins/org.jboss.tools.jsf.ui/src, classDir=jsf/plugins/org.jboss.tools.jsf.ui/target/classes/, execFile=jsf/tests/target/jacoco.exec] locations are configured
      [JaCoCo plugin] Saving module data..
      [JaCoCo plugin] Storing properties file..
      [JaCoCo plugin] Loading EXEC files..
      FATAL: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)V
      java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)V
      	at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:94)
      	at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:115)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:155)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:183)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      	at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)
      	at hudson.plugins.jacoco.model.ModuleInfo.analyzeStructure(ModuleInfo.java:90)
      	at hudson.plugins.jacoco.model.ModuleInfo.loadBundleCoverage(ModuleInfo.java:96)
      	at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:311)
      	at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:289)
      	at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:164)
      	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
      	at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:619)
      	at hudson.model.Run.run(Run.java:1429)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:238)
      

      When the same job is run on local Jenkins installation directly on Jenkins Master machine there is no error.

        Attachments

          Activity

          Hide
          ognjenb Ognjen Bubalo added a comment -

          Hi,

          Do you use asm lib in your job?

          Show
          ognjenb Ognjen Bubalo added a comment - Hi, Do you use asm lib in your job?
          Hide
          vpakan Vlado Pakan added a comment - - edited

          I'm not sure. My jobs contains just couple of standard steps:

          1. Checkout from SVN
          2. Run Maven build
          3. Run jacoco plugin to create Code Coverage reports

          Does that help you?

          Or how can I find out my job is using asm lib?

          Show
          vpakan Vlado Pakan added a comment - - edited I'm not sure. My jobs contains just couple of standard steps: 1. Checkout from SVN 2. Run Maven build 3. Run jacoco plugin to create Code Coverage reports Does that help you? Or how can I find out my job is using asm lib?
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ognjen Bubalo
          Path:
          pom.xml
          http://jenkins-ci.org/commit/jacoco-plugin/ee58f711a6f9a62e379f760b0b8b31464f8adfa5
          Log:
          Fixing JENKINS-15242 org.objectweb.asm.ClassReader.accept error: Using pluginClassLoaderFirst.

          Compare: https://github.com/jenkinsci/jacoco-plugin/compare/4e138b068de1...ee58f711a6f9

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ognjen Bubalo Path: pom.xml http://jenkins-ci.org/commit/jacoco-plugin/ee58f711a6f9a62e379f760b0b8b31464f8adfa5 Log: Fixing JENKINS-15242 org.objectweb.asm.ClassReader.accept error: Using pluginClassLoaderFirst. Compare: https://github.com/jenkinsci/jacoco-plugin/compare/4e138b068de1...ee58f711a6f9
          Hide
          ognjenb Ognjen Bubalo added a comment -

          Upcoming 1.0.7 should fix this issue. Please give us a feedback!

          Show
          ognjenb Ognjen Bubalo added a comment - Upcoming 1.0.7 should fix this issue. Please give us a feedback!
          Hide
          tpreston Tim Preston added a comment -

          I just installed 1.0.7 (first time installing this plugin). I'm still getting the same error.

          Show
          tpreston Tim Preston added a comment - I just installed 1.0.7 (first time installing this plugin). I'm still getting the same error.
          Hide
          vpakan Vlado Pakan added a comment -

          We just updated to 1.0.7 and we have got this error:

          [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/hudson/workspace/jbosstools-3.3_stable_branch.jsf.bot.tests.codecoverage/jsf/tests/target/jacoco.execERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception
          java.lang.IllegalStateException: basedir /home/hudson/workspace/jbosstools-3.3_stable_branch.jsf.bot.tests.codecoverage does not exist.
          	at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:852)
          	at hudson.plugins.jacoco.JacocoPublisher.resolveDirPaths(JacocoPublisher.java:116)
          	at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:181)
          	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
          	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
          	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
          	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
          	at hudson.model.Build$RunnerImpl.post2(Build.java:162)
          	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:619)
          	at hudson.model.Run.run(Run.java:1429)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:238)
          

          Directory /home/hudson/workspace/jbosstools-3.3_stable_branch.jsf.bot.tests.codecoverage exists only on slave doesn't exist on Jenkins master. Could it be a problem.

          I'm not sure if this means that old asm version is not used anymore therefore I'm not closing this issue for now.

          Show
          vpakan Vlado Pakan added a comment - We just updated to 1.0.7 and we have got this error: [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/hudson/workspace/jbosstools-3.3_stable_branch.jsf.bot.tests.codecoverage/jsf/tests/target/jacoco.execERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.lang.IllegalStateException: basedir /home/hudson/workspace/jbosstools-3.3_stable_branch.jsf.bot.tests.codecoverage does not exist. at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:852) at hudson.plugins.jacoco.JacocoPublisher.resolveDirPaths(JacocoPublisher.java:116) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:181) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:619) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Directory /home/hudson/workspace/jbosstools-3.3_stable_branch.jsf.bot.tests.codecoverage exists only on slave doesn't exist on Jenkins master. Could it be a problem. I'm not sure if this means that old asm version is not used anymore therefore I'm not closing this issue for now.
          Hide
          ognjenb Ognjen Bubalo added a comment -

          This was a new issue. The upcomming 1.0.8 version fixes it too. Check your update center in the next 6-12 hours.

          Cheers,
          Ogi

          Show
          ognjenb Ognjen Bubalo added a comment - This was a new issue. The upcomming 1.0.8 version fixes it too. Check your update center in the next 6-12 hours. Cheers, Ogi
          Hide
          vpakan Vlado Pakan added a comment -

          With version 1.0.8 it's working for me. Thank you a lot for quick response.

          Show
          vpakan Vlado Pakan added a comment - With version 1.0.8 it's working for me. Thank you a lot for quick response.

            People

            • Assignee:
              ognjenb Ognjen Bubalo
              Reporter:
              vpakan Vlado Pakan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: