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

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

    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

          Hide
          danielbeck Daniel Beck added a comment - - edited

          Jenkins does not currently enforce that all plugins that are dependencies of enabled plugins are also enabled. So you can still mess it up.

          However making the dependency explicit documents it on the wiki, and will help when this enforcement is implemented (JENKINS-23150 and related).

          Show
          danielbeck Daniel Beck added a comment - - edited Jenkins does not currently enforce that all plugins that are dependencies of enabled plugins are also enabled. So you can still mess it up. However making the dependency explicit documents it on the wiki, and will help when this enforcement is implemented ( JENKINS-23150 and related).
          Hide
          sambuc Lionel Sambuc added a comment -

          Thank you for replying back.

          I will do the update and check this in a few days, as we are currently testing a huge patch set.

          As I said previously, I would be satisfied with just a documentation update.

          Show
          sambuc Lionel Sambuc added a comment - Thank you for replying back. I will do the update and check this in a few days, as we are currently testing a huge patch set. As I said previously, I would be satisfied with just a documentation update.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Lionel, I've added some notes in the first paragraphs about this issue - https://wiki.jenkins-ci.org/display/JENKINS/TAP+Plugin

          Do you think that'd be enough for now? Thanks!

          Show
          kinow Bruno P. Kinoshita added a comment - Lionel, I've added some notes in the first paragraphs about this issue - https://wiki.jenkins-ci.org/display/JENKINS/TAP+Plugin Do you think that'd be enough for now? Thanks!
          Hide
          sambuc Lionel Sambuc added a comment -

          Hi,

          It is good for me. Had I had that information back then, I would have had our jenkins setup back to work in an hours or so after the upgrade.

          Thanks,

          Have a nice day

          Show
          sambuc Lionel Sambuc added a comment - Hi, It is good for me. Had I had that information back then, I would have had our jenkins setup back to work in an hours or so after the upgrade. Thanks, Have a nice day
          Hide
          sambuc Lionel Sambuc added a comment -

          The documentation update solves the issue for me.

          Show
          sambuc Lionel Sambuc added a comment - The documentation update solves the issue for me.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: