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

2.274+ Error creating extended parser class: null

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • token-macro-plugin
    • None

      Same as JENKINS-64556 and JENKINS-64555 except this still occurs on my install - and it occurs with 2.274, 2.275, 2.276 and 2.277.

      This error was generated with 2.277:

      git submodule update --init --recursive ci/ami # timeout=10
       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:211)
       at jenkins.plugins.slack.JenkinsTokenExpander.expand(JenkinsTokenExpander.java:22)
       at jenkins.plugins.slack.ActiveNotifier$MessageBuilder.appendCustomMessage(ActiveNotifier.java:443)
       at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:69)
       at jenkins.plugins.slack.SlackNotifier.prebuild(SlackNotifier.java:617)
       at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:854)
       at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:849)
       at hudson.model.Build$BuildExecution.doRun(Build.java:145)
       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)
      ERROR: Build step failed with exception
       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:211)
       at jenkins.plugins.slack.JenkinsTokenExpander.expand(JenkinsTokenExpander.java:22)
       at jenkins.plugins.slack.ActiveNotifier$MessageBuilder.appendCustomMessage(ActiveNotifier.java:443)
       at jenkins.plugins.slack.ActiveNotifier.getBuildStatusMessage(ActiveNotifier.java:248)
       at jenkins.plugins.slack.ActiveNotifier.completed(ActiveNotifier.java:125)
       at jenkins.plugins.slack.SlackNotifier.perform(SlackNotifier.java:607)
       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803)
       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752)
       at hudson.model.Build$BuildExecution.cleanUp(Build.java:187)
       at hudson.model.Run.execute(Run.java:1954)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      

       

          [JENKINS-64730] 2.274+ Error creating extended parser class: null

          Mark Waite added a comment -

          The stack trace is not related to the git plugin. It seems to be related to the token-macro plugin. Have you updated to the most recent release of the token -macro plugin?

          Mark Waite added a comment - The stack trace is not related to the git plugin. It seems to be related to the token-macro plugin. Have you updated to the most recent release of the token -macro plugin?

          token-macro causes some issues.

          My case is that i installed only one plugin (blueocean) in the LTS (2.263.3) jenkins:

           

          jenkins-plugin-cli --war "/usr/share/jenkins/jenkins.war" --plugins "blueocean:1.23.2" --verbose

          Though it's one plugin, it has transitive dependencies. The installation is broken because of this error: 

           

          popper-api has no dependencies
          io.jenkins.tools.pluginmanager.impl.VersionCompatibilityException:
          token-macro (2.14) requires a greater version of Jenkins (2.274) than 2.263.3 in /usr/share/jenkins/jenkins.war
           at io.jenkins.tools.pluginmanager.impl.PluginManager.checkVersionCompatibility(PluginManager.java:438)
           at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:163)
           at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:117)
           at io.jenkins.tools.pluginmanager.cli.Main.main(Main.java:76)

          Abdennour Toumi added a comment - token-macro causes some issues. My case is that i installed only one plugin (blueocean) in the LTS (2.263.3) jenkins:   jenkins-plugin-cli --war "/usr/share/jenkins/jenkins.war" --plugins "blueocean:1.23.2"  --verbose Though it's one plugin, it has transitive dependencies. The installation is broken because of this error:    popper-api has no dependencies io.jenkins.tools.pluginmanager.impl.VersionCompatibilityException: token-macro (2.14) requires a greater version of Jenkins (2.274) than 2.263.3 in /usr/share/jenkins/jenkins.war at io.jenkins.tools.pluginmanager.impl.PluginManager.checkVersionCompatibility(PluginManager.java:438) at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:163) at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:117) at io.jenkins.tools.pluginmanager.cli.Main.main(Main.java:76)

          Mark Waite added a comment -

          abdennour that seems like you're describing a bug in plugin installation manager, not in Jenkins core. I used the following commands to run a Docker image with Jenkins 2.263.3 and Blue Ocean 1.23.4 like this:

          $ cat > Dockerfile <<EOF
          FROM jenkins/jenkins:2.263.3-lts-jdk11
          RUN jenkins-plugin-cli --plugins blueocean:1.24.4
          EOF
          $ docker build --tag blueocean:2.263.3-1 .
          $ docker run --rm -i -t -p 8080:8080 blueocean:2.263.3-1
          

          That installed token-macro 2.13 into the Docker image. Jenkins starts and correctly reports that token-macro 2.14 is unavailable for installation on Jenkins 2.263.3.

          Mark Waite added a comment - abdennour that seems like you're describing a bug in plugin installation manager, not in Jenkins core. I used the following commands to run a Docker image with Jenkins 2.263.3 and Blue Ocean 1.23.4 like this: $ cat > Dockerfile <<EOF FROM jenkins/jenkins:2.263.3-lts-jdk11 RUN jenkins-plugin-cli --plugins blueocean:1.24.4 EOF $ docker build --tag blueocean:2.263.3-1 . $ docker run --rm -i -t -p 8080:8080 blueocean:2.263.3-1 That installed token-macro 2.13 into the Docker image. Jenkins starts and correctly reports that token-macro 2.14 is unavailable for installation on Jenkins 2.263.3.

            Unassigned Unassigned
            plucmtl PL
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: