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

"java.lang.RuntimeException: Error creating extended parser class: null" after update to Jenkins 2.274

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • token-macro-plugin
    • Jenkins: 2.274
      Bitbucket Server Notifier Plugin: 1.20

      After updating to Jenkins 2.274, we get the following exception in the Bitbucket Server Notifier Plugin

      08:40:17  Caught exception while notifying Bitbucket with id d0ecf7b50eab65ea60c48e256feab7054b04df57
      08:40:17  java.lang.RuntimeException: Error creating extended parser class: null
      08:40:17  	at org.parboiled.Parboiled.createParser(Parboiled.java:58)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.expandStashURL(StashNotifier.java:927)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.notifyStash(StashNotifier.java:780)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.processJenkinsEvent(StashNotifier.java:380)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.perform(StashNotifier.java:336)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.perform(StashNotifier.java:303)
      08:40:17  	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      08:40:17  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
      08:40:17  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
      08:40:17  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      08:40:17  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      08:40:17  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      08:40:17  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      08:40:17  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      08:40:17  	at java.lang.Thread.run(Thread.java:748)
      08:40:17  Caused by: java.lang.IllegalStateException
      08:40:17  	at org.objectweb.asm.tree.analysis.BasicInterpreter.<init>(BasicInterpreter.java:66)
      08:40:17  	at org.parboiled.transform.RuleMethodInterpreter.<init>(RuleMethodInterpreter.java:42)
      08:40:17  	at org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:41)
      08:40:17  	at org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
      08:40:17  	at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
      08:40:17  	at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:39)
      08:40:17  	at org.parboiled.Parboiled.createParser(Parboiled.java:54)
      08:40:17  	... 19 more
      08:40:17  Caught exception while notifying Bitbucket with id aa946821bd10066f8d77bfd3872ecdf99e6b44a8
      08:40:17  java.lang.RuntimeException: Error creating extended parser class: null
      08:40:17  	at org.parboiled.Parboiled.createParser(Parboiled.java:58)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237)
      08:40:17  	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.expandStashURL(StashNotifier.java:927)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.notifyStash(StashNotifier.java:780)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.processJenkinsEvent(StashNotifier.java:380)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.perform(StashNotifier.java:336)
      08:40:17  	at org.jenkinsci.plugins.stashNotifier.StashNotifier.perform(StashNotifier.java:303)
      08:40:17  	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      08:40:17  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
      08:40:17  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
      08:40:17  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      08:40:17  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      08:40:17  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      08:40:17  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      08:40:17  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      08:40:17  	at java.lang.Thread.run(Thread.java:748)
      08:40:17  Caused by: java.lang.IllegalStateException
      08:40:17  	at org.objectweb.asm.tree.analysis.BasicInterpreter.<init>(BasicInterpreter.java:66)
      08:40:17  	at org.parboiled.transform.RuleMethodInterpreter.<init>(RuleMethodInterpreter.java:42)
      08:40:17  	at org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:41)
      08:40:17  	at org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
      08:40:17  	at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
      08:40:17  	at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:39)
      08:40:17  	at org.parboiled.Parboiled.createParser(Parboiled.java:54)
      08:40:17  	... 19 more

          [JENKINS-64556] "java.lang.RuntimeException: Error creating extended parser class: null" after update to Jenkins 2.274

          Thomas Tardy created issue -

          Thomas Tardy added a comment -

          Sorry, there are different Bitbucket notifier plugins. We are using version 1.20 of this plugin: https://plugins.jenkins.io/stashNotifier/

          Thomas Tardy added a comment - Sorry, there are different Bitbucket notifier plugins. We are using version 1.20 of this plugin: https://plugins.jenkins.io/stashNotifier/

          Florian added a comment - - edited

          We experience the same root cause, but in our case its related to the build-name-setter plugin (v2.1.0):

          21:08:11 FATAL: Error creating extended parser class: null
          21:08:11 java.lang.IllegalStateException
          21:08:11 	at org.objectweb.asm.tree.analysis.BasicInterpreter.<init>(BasicInterpreter.java:66)
          21:08:11 	at org.parboiled.transform.RuleMethodInterpreter.<init>(RuleMethodInterpreter.java:42)
          21:08:11 	at org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:41)
          21:08:11 	at org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
          21:08:11 	at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
          21:08:11 	at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:39)
          21:08:11 	at org.parboiled.Parboiled.createParser(Parboiled.java:54)
          21:08:11 Caused: java.lang.RuntimeException: Error creating extended parser class: null
          21:08:11 	at org.parboiled.Parboiled.createParser(Parboiled.java:58)
          21:08:11 	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80)
          21:08:11 	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
          21:08:11 	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)
          21:08:11 	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237)
          21:08:11 	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207)
          21:08:11 	at org.jenkinsci.plugins.buildnamesetter.Executor.evaluateMacro(Executor.java:75)
          21:08:11 	at org.jenkinsci.plugins.buildnamesetter.Executor.setName(Executor.java:30)
          21:08:11 	at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:84)
          21:08:11 	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
          21:08:11 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513)
          21:08:11 	at hudson.model.Run.execute(Run.java:1907)
          21:08:11 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          21:08:11 	at hudson.model.ResourceController.execute(ResourceController.java:97)
          21:08:11 	at hudson.model.Executor.run(Executor.java:429)
          

          This appeared after upgrading to 2.274. After downgrading to 2.273 it worked as expected again.

          Florian added a comment - - edited We experience the same root cause, but in our case its related to the  build-name-setter plugin  (v2.1.0): 21:08:11 FATAL: Error creating extended parser class: null 21:08:11 java.lang.IllegalStateException 21:08:11 at org.objectweb.asm.tree.analysis.BasicInterpreter.<init>(BasicInterpreter.java:66) 21:08:11 at org.parboiled.transform.RuleMethodInterpreter.<init>(RuleMethodInterpreter.java:42) 21:08:11 at org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:41) 21:08:11 at org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62) 21:08:11 at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45) 21:08:11 at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:39) 21:08:11 at org.parboiled.Parboiled.createParser(Parboiled.java:54) 21:08:11 Caused: java.lang.RuntimeException: Error creating extended parser class: null 21:08:11 at org.parboiled.Parboiled.createParser(Parboiled.java:58) 21:08:11 at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80) 21:08:11 at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74) 21:08:11 at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199) 21:08:11 at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237) 21:08:11 at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207) 21:08:11 at org.jenkinsci.plugins.buildnamesetter.Executor.evaluateMacro(Executor.java:75) 21:08:11 at org.jenkinsci.plugins.buildnamesetter.Executor.setName(Executor.java:30) 21:08:11 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:84) 21:08:11 at hudson.model.Build$BuildExecution.doRun(Build.java:157) 21:08:11 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513) 21:08:11 at hudson.model.Run.execute(Run.java:1907) 21:08:11 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 21:08:11 at hudson.model.ResourceController.execute(ResourceController.java:97) 21:08:11 at hudson.model.Executor.run(Executor.java:429) This appeared after upgrading to 2.274. After downgrading to 2.273 it worked as expected again.
          Thomas Tardy made changes -
          Summary Original: Bitbucket Server Notifier Plugin fails after update to Jenkins 2.274 New: "java.lang.RuntimeException: Error creating extended parser class: null" after update to Jenkins 2.274
          Thomas Tardy made changes -
          Link New: This issue duplicates JENKINS-64555 [ JENKINS-64555 ]

          Morten Bjoernsvik added a comment - - edited

          Seem to have the same error, first related to prometheus-plugin and when downgradet it, it moved to BasicInterpreter:

          ```

          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)

          ```

          Downgraded to jenkins 2.273 and it all work fine again with all plugins upgraded

          Morten Bjoernsvik added a comment - - edited Seem to have the same error, first related to prometheus-plugin and when downgradet it, it moved to BasicInterpreter: ``` 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) ``` Downgraded to jenkins 2.273 and it all work fine again with all plugins upgraded
          Alex Earl made changes -
          Assignee Original: Antonio Mansilla [ flagbit ] New: Alex Earl [ slide_o_mix ]
          Alex Earl made changes -
          Component/s New: token-macro-plugin [ 15832 ]
          Component/s Original: bitbucket-build-status-notifier-plugin [ 21138 ]
          Tim Jacomb made changes -
          Released As New: https://github.com/jenkinsci/token-macro-plugin/releases/tag/token-macro-2.14
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Tim Jacomb made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            slide_o_mix Alex Earl
            thomastardy Thomas Tardy
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: