java.lang.NumberFormatException: null

Jenkins JIRA | Christopher Orr | 7 months ago
  1. 0

    The fix for SECURITY-170 as described in this blog post means that Jenkins core filters out any parameters used that were not defined in the job: https://jenkins.io/blog/2016/05/11/security-update/ Since GHPRB defines lots of parameters at runtime, and then later tries to access them, a bunch of functionality in the plugin fails. For example, at the end of a PR build, the plugin tries to read the PR ID so that it can update it on GitHub — but because the {{ghprbPullId}} parameter gets filtered out, the plugin fails to determine the PR ID. {code} May 12, 2016 12:35:13 PM hudson.model.ParametersAction filter WARNING: Skipped parameter `ghprbPullId ` as it is undefined on `pr-test-job`. Set `-Dhudson.model.ParametersAction.keepUndefinedParameters`=true to allow undefined parameters to be injected as environment variables or `-Dhudson.model.ParametersAction.safeParameters=[comma-separated list]` to whitelist specific parameter names, even though it represents a security breach May 12, 2016 12:35:13 PM hudson.model.listeners.RunListener report WARNING: RunListener failed java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:542) at java.lang.Integer.parseInt(Integer.java:615) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:220) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:208) at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:192) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:32) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:17) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:202) at hudson.model.Run.execute(Run.java:1783) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} Presumably this plugin should define its own {{Action}} class to store this information, rather than relying on these parameters to be exported into the environment during a build.

    Jenkins JIRA | 7 months ago | Christopher Orr
    java.lang.NumberFormatException: null
  2. 0

    The fix for SECURITY-170 as described in this blog post means that Jenkins core filters out any parameters used that were not defined in the job: https://jenkins.io/blog/2016/05/11/security-update/ Since GHPRB defines lots of parameters at runtime, and then later tries to access them, a bunch of functionality in the plugin fails. For example, at the end of a PR build, the plugin tries to read the PR ID so that it can update it on GitHub — but because the {{ghprbPullId}} parameter gets filtered out, the plugin fails to determine the PR ID. {code} May 12, 2016 12:35:13 PM hudson.model.ParametersAction filter WARNING: Skipped parameter `ghprbPullId ` as it is undefined on `pr-test-job`. Set `-Dhudson.model.ParametersAction.keepUndefinedParameters`=true to allow undefined parameters to be injected as environment variables or `-Dhudson.model.ParametersAction.safeParameters=[comma-separated list]` to whitelist specific parameter names, even though it represents a security breach May 12, 2016 12:35:13 PM hudson.model.listeners.RunListener report WARNING: RunListener failed java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:542) at java.lang.Integer.parseInt(Integer.java:615) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:220) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:208) at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:192) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:32) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:17) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:202) at hudson.model.Run.execute(Run.java:1783) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} Presumably this plugin should define its own {{Action}} class to store this information, rather than relying on these parameters to be exported into the environment during a build.

    Jenkins JIRA | 7 months ago | Christopher Orr
    java.lang.NumberFormatException: null
  3. 0

    Get Build Failure on Sample Map Under OS X

    GitHub | 2 years ago | contrext
    java.lang.NumberFormatException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in thread "main" java.lang.NumberFormatException: null

    GitHub | 2 years ago | ysudhir
    java.lang.NumberFormatException: null
  6. 0

    Opening a dialog box with pre-populated fields (after clicking edit link)

    Stack Overflow | 2 years ago | Mohit Kumar
    java.lang.NumberFormatException: null

  1. Handemelindo 6 times, last 2 days ago
  2. bmacedo 2 times, last 3 days ago
  3. MoYapro 1 times, last 7 days ago
  4. filpgame 4 times, last 3 weeks ago
  5. silex 6 times, last 1 month ago
32 more registered users
63 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    null

    at java.lang.Integer.parseInt()
  2. Java RT
    Integer.parseInt
    1. java.lang.Integer.parseInt(Integer.java:542)
    2. java.lang.Integer.parseInt(Integer.java:615)
    2 frames
  3. org.jenkinsci.plugins
    GhprbBuildListener.onCompleted
    1. org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:220)
    2. org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:208)
    3. org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:192)
    4. org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:32)
    5. org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:17)
    5 frames
  4. Hudson
    Executor.run
    1. hudson.model.listeners.RunListener.fireCompleted(RunListener.java:202)
    2. hudson.model.Run.execute(Run.java:1783)
    3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    4. hudson.model.ResourceController.execute(ResourceController.java:98)
    5. hudson.model.Executor.run(Executor.java:410)
    5 frames