java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;

Jenkins JIRA | Ben Cooksley | 2 years ago
  1. 0

    Build-status notifiers fail with the same exception: WARNING: Publisher hudson.plugins.jabber.im.transport.JabberPublisher aborted due to exception java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport(PrintFailingTestsBuildToChatNotifier.java:68) at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.buildCompletionMessage(PrintFailingTestsBuildToChatNotifier.java:37) at hudson.plugins.im.IMPublisher.notifyChatsOnBuildEnd(IMPublisher.java:577) at hudson.plugins.im.IMPublisher.notifyOnBuildEnd(IMPublisher.java:304) at hudson.plugins.im.IMPublisher.perform(IMPublisher.java:291) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) OR WARNING: Publisher hudson.plugins.emailext.ExtendedEmailPublisher aborted due to exception java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; at hudson.plugins.emailext.plugins.content.FailedTestsContent.evaluate(FailedTestsContent.java:47) at org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.evaluate(DataBoundTokenMacro.java:189) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:182) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:233) at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:71) at hudson.plugins.emailext.ExtendedEmailPublisher.getContent(ExtendedEmailPublisher.java:597) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:476) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:290) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:281) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:233) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1786) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89)

    Jenkins JIRA | 2 years ago | Riccardo Gorza
    java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
  2. 0

    Currently a number of our builds are being forced to fail by the IRC Notification component due to the following stacktrace: ERROR: Publisher hudson.plugins.ircbot.IrcPublisher aborted due to exception java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport(PrintFailingTestsBuildToChatNotifier.java:68) at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.buildCompletionMessage(PrintFailingTestsBuildToChatNotifier.java:37) at hudson.plugins.im.IMPublisher.notifyChatsOnBuildEnd(IMPublisher.java:577) at hudson.plugins.im.IMPublisher.notifyOnBuildEnd(IMPublisher.java:304) at hudson.plugins.im.IMPublisher.perform(IMPublisher.java:291) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Switching the Channel Notification Message to anything which does not mention "failed tests" will resolve the issue. It should be noted that this is only a problem if "failed tests" is selected as part of the Channel Notification Message and the build has tests which then fail.

    Jenkins JIRA | 2 years ago | Ben Cooksley
    java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
  3. 0

    Build-status notifiers fail with the same exception: WARNING: Publisher hudson.plugins.jabber.im.transport.JabberPublisher aborted due to exception java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport(PrintFailingTestsBuildToChatNotifier.java:68) at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.buildCompletionMessage(PrintFailingTestsBuildToChatNotifier.java:37) at hudson.plugins.im.IMPublisher.notifyChatsOnBuildEnd(IMPublisher.java:577) at hudson.plugins.im.IMPublisher.notifyOnBuildEnd(IMPublisher.java:304) at hudson.plugins.im.IMPublisher.perform(IMPublisher.java:291) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) OR WARNING: Publisher hudson.plugins.emailext.ExtendedEmailPublisher aborted due to exception java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; at hudson.plugins.emailext.plugins.content.FailedTestsContent.evaluate(FailedTestsContent.java:47) at org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.evaluate(DataBoundTokenMacro.java:189) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:182) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:233) at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:71) at hudson.plugins.emailext.ExtendedEmailPublisher.getContent(ExtendedEmailPublisher.java:597) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:476) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:290) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:281) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:233) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1786) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89)

    Jenkins JIRA | 2 years ago | Riccardo Gorza
    java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Currently a number of our builds are being forced to fail by the IRC Notification component due to the following stacktrace: ERROR: Publisher hudson.plugins.ircbot.IrcPublisher aborted due to exception java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction; at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport(PrintFailingTestsBuildToChatNotifier.java:68) at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.buildCompletionMessage(PrintFailingTestsBuildToChatNotifier.java:37) at hudson.plugins.im.IMPublisher.notifyChatsOnBuildEnd(IMPublisher.java:577) at hudson.plugins.im.IMPublisher.notifyOnBuildEnd(IMPublisher.java:304) at hudson.plugins.im.IMPublisher.perform(IMPublisher.java:291) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Switching the Channel Notification Message to anything which does not mention "failed tests" will resolve the issue. It should be noted that this is only a problem if "failed tests" is selected as part of the Channel Notification Message and the build has tests which then fail.

    Jenkins JIRA | 2 years ago | Ben Cooksley
    java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
  6. 0

    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)

    Jenkins JIRA | 6 years ago | mpe
    java.lang.NoSuchMethodError: hudson.tasks.junit.TestObject.getTestResultAction()Lhudson/tasks/junit/TestResultAction;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;

      at hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport()
    2. Hudson instant-messaging plugin
      IMPublisher.perform
      1. hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.getFailedTestsReport(PrintFailingTestsBuildToChatNotifier.java:68)
      2. hudson.plugins.im.build_notify.PrintFailingTestsBuildToChatNotifier.buildCompletionMessage(PrintFailingTestsBuildToChatNotifier.java:37)
      3. hudson.plugins.im.IMPublisher.notifyChatsOnBuildEnd(IMPublisher.java:577)
      4. hudson.plugins.im.IMPublisher.notifyOnBuildEnd(IMPublisher.java:304)
      5. hudson.plugins.im.IMPublisher.perform(IMPublisher.java:291)
      5 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      6. hudson.model.Run.execute(Run.java:1765)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:89)
      9. hudson.model.Executor.run(Executor.java:240)
      9 frames