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

FATAL: hudson.tasks.junit.TestObject.getTestResultAction()Lhudson/tasks/junit/TestResultAction;

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After successful maven2 job we get the exception below. Hudson version we're using is 1.385 and IM plugin 1.11. It looks like in 1.385, the result type of the method is hudson.tasks.test.AbstractTestResultAction?

      FATAL: hudson.tasks.junit.TestObject.getTestResultAction()Lhudson/tasks/junit/TestResultAction;
      java.lang.NoSuchMethodError: hudson.tasks.junit.TestObject.getTestResultAction()Lhudson/tasks/junit/TestResultAction;
      at hudson.plugins.im.tools.MessageHelper.getTestUrl(MessageHelper.java:53)
      at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport(PrintFailingTestsBuildToChatNotifier.java:91)
      at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.buildCompletionMessage(PrintFailingTestsBuildToChatNotifier.java:37)
      at hudson.plugins.im.IMPublisher.notifyChats(IMPublisher.java:424)
      at hudson.plugins.im.IMPublisher.perform(IMPublisher.java:271)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:651)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1348)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:139)

        Attachments

          Activity

          Hide
          mpe mpe added a comment -

          And this (obviously?) only happens when "failed tests" notification is requested in IRC notification configuration. "Just Summary" works just fine.

          Show
          mpe mpe added a comment - And this (obviously?) only happens when "failed tests" notification is requested in IRC notification configuration. "Just Summary" works just fine.
          Hide
          kutzi kutzi added a comment -

          Yeah, that's what I would have expected. So this is the suggested workaround: don't use "failed tests" notification.

          The whole issue is strange, because it'd mean that Hudson core introduced a backwards incompatible change in TestResultAction between the version IM currently bases on (1.327 o.s.l.t.) and 1.385.

          I'll see if I can get it compilable with both versions.

          Show
          kutzi kutzi added a comment - Yeah, that's what I would have expected. So this is the suggested workaround: don't use "failed tests" notification. The whole issue is strange, because it'd mean that Hudson core introduced a backwards incompatible change in TestResultAction between the version IM currently bases on (1.327 o.s.l.t.) and 1.385. I'll see if I can get it compilable with both versions.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : kutzi
          Path:
          trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/tools/MessageHelper.java
          http://jenkins-ci.org/commit/37019
          Log:
          [FIXED JENKINS-8113] prevent NoSuchMethodError when running with newer Hudson versions (> 1.327 - not sure at which version it breaks exactly)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kutzi Path: trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/tools/MessageHelper.java http://jenkins-ci.org/commit/37019 Log: [FIXED JENKINS-8113] prevent NoSuchMethodError when running with newer Hudson versions (> 1.327 - not sure at which version it breaks exactly)
          Hide
          kutzi kutzi added a comment -

          Should be fixed in Instant-messaging plugin 1.12

          Show
          kutzi kutzi added a comment - Should be fixed in Instant-messaging plugin 1.12
          Hide
          mpe mpe added a comment -

          Thanks!

          Show
          mpe mpe added a comment - Thanks!
          Hide
          ccutrer Cody Cutrer added a comment -

          I'm still seeing this in hudson 1.385 and instant-messaging 1.12.

          Show
          ccutrer Cody Cutrer added a comment - I'm still seeing this in hudson 1.385 and instant-messaging 1.12.
          Hide
          kutzi kutzi added a comment -

          Yes, I made a logical mistake. This cannot work anymore when compiled against Hudson 1.327 and running with 1.385.
          I'll have to raise the minimal required Hudson version and compile again.

          Thanks for reporting this.

          Show
          kutzi kutzi added a comment - Yes, I made a logical mistake. This cannot work anymore when compiled against Hudson 1.327 and running with 1.385. I'll have to raise the minimal required Hudson version and compile again. Thanks for reporting this.
          Hide
          kutzi kutzi added a comment -

          Should finally be fixed in version 1.13 (fingers crossed)

          Show
          kutzi kutzi added a comment - Should finally be fixed in version 1.13 (fingers crossed)

            People

            • Assignee:
              kutzi kutzi
              Reporter:
              mpe mpe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: