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

Nullpointer in http-request-plugin

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          janario Janario Oliveira added a comment -

          Thanks for the report

          There were some backward compatibility problems

          Version 1.8.26 will be available soon, please give it a try

          https://github.com/jenkinsci/http-request-plugin/commit/72894e2723fe4a20e1691b449a664b77e813e55f

          Show
          janario Janario Oliveira added a comment - Thanks for the report There were some backward compatibility problems Version 1.8.26 will be available soon, please give it a try https://github.com/jenkinsci/http-request-plugin/commit/72894e2723fe4a20e1691b449a664b77e813e55f
          Hide
          tdesjardins Tino Desjardins added a comment -

          Wow, this was solved fast! Version 1.8.26 works for me. Thank you very much!

          Show
          tdesjardins Tino Desjardins added a comment - Wow, this was solved fast! Version 1.8.26 works for me. Thank you very much!

            People

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

              Dates

              • Created:
                Updated:
                Resolved: