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

2.277 Plugin fails build-name-setter java.lang.RuntimeException: Error creating extended parser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • token-macro-plugin
    • None
    • on windows with jenkins 2.277 with build-name-setter-plugin Version: 2.1.0
    • 2.14

      FIXED after updating Token Macro Plugin from 2.12 to 2.14 

      cannot use build-name-setter-plugin with Jenkins 2.277
      This works fine on Jenkins 2.263.1

      Exception below

       with a very basic job, I cannot take the default when enabling the build name setter.
      my config.xml

      <?xml version='1.1' encoding='UTF-8'?>
      <project>
        <actions/>
        <description></description>
        <keepDependencies>false</keepDependencies>
        <properties/>
        <scm class="hudson.scm.NullSCM"/>
        <canRoam>true</canRoam>
        <disabled>false</disabled>
        <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
        <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
        <triggers/>
        <concurrentBuild>false</concurrentBuild>
        <builders>
          <hudson.tasks.BatchFile>
            <command>echo in windows batch build number = %BUILD_NUMBER%</command>
            <configuredLocalRules/>
          </hudson.tasks.BatchFile>
        </builders>
        <publishers/>
        <buildWrappers>
          <org.jenkinsci.plugins.buildnamesetter.BuildNameSetter plugin="build-name-setter@2.1.0">
            <template>#${BUILD_NUMBER}</template>
            <descriptionTemplate></descriptionTemplate>
            <runAtStart>true</runAtStart>
            <runAtEnd>true</runAtEnd>
          </org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
        </buildWrappers>
      </project>
      
      FATAL: Error creating extended parser class: null
      java.lang.IllegalStateException
       at org.objectweb.asm.tree.analysis.BasicInterpreter.<init>(BasicInterpreter.java:66)
       at org.parboiled.transform.RuleMethodInterpreter.<init>(RuleMethodInterpreter.java:42)
       at org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:41)
       at org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
       at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
       at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:39)
       at org.parboiled.Parboiled.createParser(Parboiled.java:54)
      Caused: java.lang.RuntimeException: Error creating extended parser class: null
       at org.parboiled.Parboiled.createParser(Parboiled.java:58)
       at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80)
       at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
       at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)
       at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237)
       at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207)
       at org.jenkinsci.plugins.buildnamesetter.Executor.evaluateMacro(Executor.java:75)
       at org.jenkinsci.plugins.buildnamesetter.Executor.setName(Executor.java:30)
       at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:84)
       at hudson.model.Build$BuildExecution.doRun(Build.java:157)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513)
       at hudson.model.Run.execute(Run.java:1907)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      Archiving artifacts
      Finished: FAILURE
      

            dszczepanik Damian Szczepanik
            henrybuttle Henry Buttle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: