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

TAP plugin fails to load with java.lang.NoClassDefFoundError: hudson/tasks/test/AbstractTestResultAction

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Since I upgraded jenkins to the latest revision, the TAP plugin failed with:

      TAP Reports Processing: START Looking for TAP results report in workspace using pattern: out.tap Saving reports... Processing '/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap' 
      Parsing TAP test result [/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap]. 
      ERROR: Publisher org.tap4j.plugin.TapPublisher aborted due to exception 
      java.lang.NoClassDefFoundError: hudson/tasks/test/AbstractTestResultAction
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
       at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138)
       at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:799)
       at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309)
       at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
       at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
       at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
       at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:263)
       at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
       at hudson.model.Build$BuildExecution.post2(Build.java:183)
       at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
       at hudson.model.Run.execute(Run.java:1742)
       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.ClassNotFoundException: hudson.tasks.test.AbstractTestResultAction
       at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
       at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
       at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
       ... 19 more
       Finished: FAILURE
      

      I know my tap file is correct, I checked it validates with the given web service on the wiki page of the plugin. Also this used to work prior a Jenkins upgrade.

      You can access the full log at http://jenkins.minix3.org/job/testrunner-x86-vm-cross/1/console

        Attachments

          Activity

          sambuc Lionel Sambuc created issue -
          danielbeck Daniel Beck made changes -
          Field Original Value New Value
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]
          kinow Bruno P. Kinoshita made changes -
          Comment [ Thanks Daniel! So I believe that if I update the Jenkins version in the plug-in pom.xml, and add a dependency to junit-plugin, that will fix the issue in the next releases of the tap-plugin? ]
          sambuc Lionel Sambuc made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 161428 ] JNJira + In-Review [ 208483 ]
          cleclerc Cyrille Le Clerc made changes -
          Description Since I upgraded jenkins to the latest revision, the TAP plugin failed with:
          TAP Reports Processing: START
          Looking for TAP results report in workspace using pattern: out.tap
          Saving reports...
          Processing '/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap'
          Parsing TAP test result [/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap].
          ERROR: Publisher org.tap4j.plugin.TapPublisher aborted due to exception
          java.lang.NoClassDefFoundError: hudson/tasks/test/AbstractTestResultAction
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
          at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138)
          at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:799)
          at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309)
          at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
          at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
          at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
          at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:263)
          at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
          at hudson.model.Run.execute(Run.java:1742)
          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.ClassNotFoundException: hudson.tasks.test.AbstractTestResultAction
          at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
          at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
          at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
          ... 19 more
          Finished: FAILURE

          I know my tap file is correct, I checked it validates with the given web service on the wiki page of the plugin. Also this used to work prior a Jenkins upgrade.

          You can access the full log at http://jenkins.minix3.org/job/testrunner-x86-vm-cross/1/console
          Since I upgraded jenkins to the latest revision, the TAP plugin failed with:

           
          {noformat}
          TAP Reports Processing: START Looking for TAP results report in workspace using pattern: out.tap Saving reports... Processing '/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap' Parsing TAP test result [/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap]. ERROR: Publisher org.tap4j.plugin.TapPublisher aborted due to exception java.lang.NoClassDefFoundError: hudson/tasks/test/AbstractTestResultAction at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:799) at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309) at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:263) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1742) 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.ClassNotFoundException: hudson.tasks.test.AbstractTestResultAction at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 19 more Finished: FAILURE
          {noformat}
          I know my tap file is correct, I checked it validates with the given web service on the wiki page of the plugin. Also this used to work prior a Jenkins upgrade.

          You can access the full log at [http://jenkins.minix3.org/job/testrunner-x86-vm-cross/1/console]
          cleclerc Cyrille Le Clerc made changes -
          Description Since I upgraded jenkins to the latest revision, the TAP plugin failed with:

           
          {noformat}
          TAP Reports Processing: START Looking for TAP results report in workspace using pattern: out.tap Saving reports... Processing '/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap' Parsing TAP test result [/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap]. ERROR: Publisher org.tap4j.plugin.TapPublisher aborted due to exception java.lang.NoClassDefFoundError: hudson/tasks/test/AbstractTestResultAction at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:799) at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309) at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:263) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1742) 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.ClassNotFoundException: hudson.tasks.test.AbstractTestResultAction at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 19 more Finished: FAILURE
          {noformat}
          I know my tap file is correct, I checked it validates with the given web service on the wiki page of the plugin. Also this used to work prior a Jenkins upgrade.

          You can access the full log at [http://jenkins.minix3.org/job/testrunner-x86-vm-cross/1/console]
          Since I upgraded jenkins to the latest revision, the TAP plugin failed with:
          {noformat}
          TAP Reports Processing: START Looking for TAP results report in workspace using pattern: out.tap Saving reports... Processing '/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap'
          Parsing TAP test result [/var/lib/jenkins/jobs/testrunner-x86-vm-cross/builds/1/tap-master-files/out.tap].
          ERROR: Publisher org.tap4j.plugin.TapPublisher aborted due to exception
          java.lang.NoClassDefFoundError: hudson/tasks/test/AbstractTestResultAction
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
           at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1138)
           at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:799)
           at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1309)
           at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
           at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
           at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
           at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:263)
           at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
           at hudson.model.Build$BuildExecution.post2(Build.java:183)
           at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
           at hudson.model.Run.execute(Run.java:1742)
           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.ClassNotFoundException: hudson.tasks.test.AbstractTestResultAction
           at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
           at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
           at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
           ... 19 more
           Finished: FAILURE
          {noformat}
          I know my tap file is correct, I checked it validates with the given web service on the wiki page of the plugin. Also this used to work prior a Jenkins upgrade.

          You can access the full log at [http://jenkins.minix3.org/job/testrunner-x86-vm-cross/1/console]

            People

            Assignee:
            kinow Bruno P. Kinoshita
            Reporter:
            sambuc Lionel Sambuc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: