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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            thomastardy 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/

            Show
            thomastardy 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/
            Hide
            tef_florian_juettner 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.

            Show
            tef_florian_juettner 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.
            Hide
            mortenb123 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

            Show
            mortenb123 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
            Hide
            proski Pavel Roskin added a comment -

            I had an issue with emailext not expanding tokens. There were similar backtraces in the Jenkins log. Updating Token Macro Plugin to version 2.14 (available through the standard channel for Jenkins 2.274 only) resolved the issue.
            Thanks to everybody delivering the fix so quickly!

            Show
            proski Pavel Roskin added a comment - I had an issue with emailext not expanding tokens. There were similar backtraces in the Jenkins log. Updating Token Macro Plugin to version 2.14 (available through the standard channel for Jenkins 2.274 only) resolved the issue. Thanks to everybody delivering the fix so quickly!
            Hide
            thomastardy Thomas Tardy added a comment -

            I can confirm that my issue is resolved. Thanks a lot for quickly fixing the issue!

            Show
            thomastardy Thomas Tardy added a comment - I can confirm that my issue is resolved. Thanks a lot for quickly fixing the issue!

              People

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

                Dates

                Created:
                Updated:
                Resolved: