java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String;

Jenkins JIRA | Markus Strand | 4 years ago
  1. 0

    I get a stacktrace: 15:17:13 FATAL: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String; 15:17:13 java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String; 15:17:13 at org.jvnet.jenkins.plugins.nodelabelparameter.parameterizedtrigger.NodeLabelBuildParameter.getAction(NodeLabelBuildParameter.java:38) 15:17:13 at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:170) 15:17:13 at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:240) 15:17:13 at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:56) 15:17:13 at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:96) 15:17:13 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 15:17:13 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 15:17:13 at hudson.model.Build$BuildExecution.build(Build.java:199) 15:17:13 at hudson.model.Build$BuildExecution.doRun(Build.java:160) 15:17:13 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 15:17:13 at hudson.model.Run.execute(Run.java:1502) 15:17:13 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 15:17:13 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:17:13 at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Markus Strand
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String;
  2. 0

    I get a stacktrace: 15:17:13 FATAL: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String; 15:17:13 java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String; 15:17:13 at org.jvnet.jenkins.plugins.nodelabelparameter.parameterizedtrigger.NodeLabelBuildParameter.getAction(NodeLabelBuildParameter.java:38) 15:17:13 at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:170) 15:17:13 at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:240) 15:17:13 at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:56) 15:17:13 at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:96) 15:17:13 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 15:17:13 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 15:17:13 at hudson.model.Build$BuildExecution.build(Build.java:199) 15:17:13 at hudson.model.Build$BuildExecution.doRun(Build.java:160) 15:17:13 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 15:17:13 at hudson.model.Run.execute(Run.java:1502) 15:17:13 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 15:17:13 at hudson.model.ResourceController.execute(ResourceController.java:88) 15:17:13 at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Markus Strand
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String;
  3. 0

    I get the same error with any email-ext usage, even when the job has no build steps or other post-build steps configured: {code} Checking if email needs to be generated Email was triggered for: Always Sending email for trigger: Always NOT overriding default server settings, using Mailer to create session ERROR: Publisher hudson.plugins.emailext.ExtendedEmailPublisher aborted due to exception java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String; at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:72) at hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:647) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:535) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:306) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:297) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:244) 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:1791) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {code}

    Jenkins JIRA | 2 years ago | Klaus Schniedergers
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I get the same error with any email-ext usage, even when the job has no build steps or other post-build steps configured: {code} Checking if email needs to be generated Email was triggered for: Always Sending email for trigger: Always NOT overriding default server settings, using Mailer to create session ERROR: Publisher hudson.plugins.emailext.ExtendedEmailPublisher aborted due to exception java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String; at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:72) at hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:647) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:535) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:306) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:297) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:244) 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:1791) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {code}

    Jenkins JIRA | 2 years ago | Klaus Schniedergers
    java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;

    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

      org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/AbstractBuild;Lhudson/model/TaskListener;Ljava/lang/String;)Ljava/lang/String;

      at org.jvnet.jenkins.plugins.nodelabelparameter.parameterizedtrigger.NodeLabelBuildParameter.getAction()
    2. org.jvnet.jenkins
      NodeLabelBuildParameter.getAction
      1. org.jvnet.jenkins.plugins.nodelabelparameter.parameterizedtrigger.NodeLabelBuildParameter.getAction(NodeLabelBuildParameter.java:38)
      1 frame
    3. Hudson Parameterized Trigger plugin
      TriggerBuilder.perform
      1. hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:170)
      2. hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:240)
      3. hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:56)
      4. hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:96)
      4 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      3. hudson.model.Build$BuildExecution.build(Build.java:199)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      6. hudson.model.Run.execute(Run.java:1502)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames