java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • In a Jenkins job triggering a job in Rundeck, I get a NPE: {noformat} java.lang.NullPointerException at org.rundeck.api.parser.ExecutionParser.parseXmlNode(ExecutionParser.java:52) at org.rundeck.api.parser.ExecutionParser.parseXmlNode(ExecutionParser.java:30) at org.rundeck.api.ApiCall.execute(ApiCall.java:315) at org.rundeck.api.ApiCall.get(ApiCall.java:180) at org.rundeck.api.RundeckClient.triggerJob(RundeckClient.java:1066) at org.jenkinsci.plugins.rundeck.RundeckNotifier.notifyRundeck(RundeckNotifier.java:168) at org.jenkinsci.plugins.rundeck.RundeckNotifier.perform(RundeckNotifier.java:88) 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.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {noformat} The job is successfully triggered though in Rundeck. The NPE occurs in Jenkins when trying to parse the answer. The config of the rundeck-plugin in Jenkins is the URL and the auth token. No API version specified (thus, default v9 is used).
    via by Anders Hammar,
    • java.lang.NullPointerException at org.rundeck.api.parser.ExecutionParser.parseXmlNode(ExecutionParser.java:52) at org.rundeck.api.parser.ExecutionParser.parseXmlNode(ExecutionParser.java:30) at org.rundeck.api.ApiCall.execute(ApiCall.java:315) at org.rundeck.api.ApiCall.get(ApiCall.java:180) at org.rundeck.api.RundeckClient.triggerJob(RundeckClient.java:1066) at org.jenkinsci.plugins.rundeck.RundeckNotifier.notifyRundeck(RundeckNotifier.java:168) at org.jenkinsci.plugins.rundeck.RundeckNotifier.perform(RundeckNotifier.java:88) 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.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)
    No Bugmate found.