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

Nullpointer in http-request-plugin

XMLWordPrintable

      When upgrading http-request-plugin from 1.8.24 to 1.8.25 the following Nullpointer occures:

      ERROR: Build step failed with exception
      java.lang.NullPointerException
      at jenkins.plugins.http_request.HttpRequestExecution.from(HttpRequestExecution.java:121)
      at jenkins.plugins.http_request.HttpRequest.perform(HttpRequest.java:392)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      at hudson.model.Build$BuildExecution.build(Build.java:206)
      at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      at hudson.model.Run.execute(Run.java:1856)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:428)
      Build step 'HTTP Request' marked build as failure

       

      Seems this is then the case if the params "content-type" and "accept" in Header-section is not set.

            janario Janario Oliveira
            tdesjardins Tino Desjardins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: