java.lang.NumberFormatException: For input string: "null"

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.

  • The following DSL script (which is an example from the docs) causes an exception. {code} job { name('test') triggers { gerrit { events { ChangeMerged DraftPublished } project('reg_exp:myProject', ['ant:feature-branch', 'plain:origin/refs/mybranch']) project('test-project', '**') buildSuccessful(10, null) } } } {code} {noformat} java.lang.NumberFormatException: For input string: "null" at java_lang_Integer$parseInt$0.call(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.GerritContext.buildSuccessful(GerritContext.groovy:46) at script14113052380471783888867$_run_closure1_closure2_closure3.doCall(script14113052380471783888867.groovy:10) at script14113052380471783888867$_run_closure1_closure2_closure3.doCall(script14113052380471783888867.groovy) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.executeInContext(AbstractContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$executeInContext$0.call(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContext.gerrit(TriggerContext.groovy:201) at script14113052380471783888867$_run_closure1_closure2.doCall(script14113052380471783888867.groovy:3) at script14113052380471783888867$_run_closure1_closure2.doCall(script14113052380471783888867.groovy) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.executeInContext(AbstractContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$executeInContext$0.callStatic(Unknown Source) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.execute(AbstractContextHelper.groovy:32) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$execute.callCurrent(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContextHelper.triggers(TriggerContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContextHelper$triggers.call(Unknown Source) at javaposse.jobdsl.dsl.Job.triggers(Job.groovy) at script14113052380471783888867$_run_closure1.doCall(script14113052380471783888867.groovy:2) at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy:32) at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy) at javaposse.jobdsl.dsl.DslFactory$job.callCurrent(Unknown Source) at script14113052380471783888867.run(script14113052380471783888867.groovy:1) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:69) at javaposse.jobdsl.dsl.DslScriptLoader$runDslEngineForParent.call(Unknown Source) ... {noformat}
    via by Daniel Spilker,
  • The following DSL script (which is an example from the docs) causes an exception. {code} job { name('test') triggers { gerrit { events { ChangeMerged DraftPublished } project('reg_exp:myProject', ['ant:feature-branch', 'plain:origin/refs/mybranch']) project('test-project', '**') buildSuccessful(10, null) } } } {code} {noformat} java.lang.NumberFormatException: For input string: "null" at java_lang_Integer$parseInt$0.call(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.GerritContext.buildSuccessful(GerritContext.groovy:46) at script14113052380471783888867$_run_closure1_closure2_closure3.doCall(script14113052380471783888867.groovy:10) at script14113052380471783888867$_run_closure1_closure2_closure3.doCall(script14113052380471783888867.groovy) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.executeInContext(AbstractContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$executeInContext$0.call(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContext.gerrit(TriggerContext.groovy:201) at script14113052380471783888867$_run_closure1_closure2.doCall(script14113052380471783888867.groovy:3) at script14113052380471783888867$_run_closure1_closure2.doCall(script14113052380471783888867.groovy) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.executeInContext(AbstractContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$executeInContext$0.callStatic(Unknown Source) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.execute(AbstractContextHelper.groovy:32) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$execute.callCurrent(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContextHelper.triggers(TriggerContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContextHelper$triggers.call(Unknown Source) at javaposse.jobdsl.dsl.Job.triggers(Job.groovy) at script14113052380471783888867$_run_closure1.doCall(script14113052380471783888867.groovy:2) at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy:32) at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy) at javaposse.jobdsl.dsl.DslFactory$job.callCurrent(Unknown Source) at script14113052380471783888867.run(script14113052380471783888867.groovy:1) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:69) at javaposse.jobdsl.dsl.DslScriptLoader$runDslEngineForParent.call(Unknown Source) ... {noformat}
    via by Daniel Spilker,
    • java.lang.NumberFormatException: For input string: "null" at java_lang_Integer$parseInt$0.call(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.GerritContext.buildSuccessful(GerritContext.groovy:46) at script14113052380471783888867$_run_closure1_closure2_closure3.doCall(script14113052380471783888867.groovy:10) at script14113052380471783888867$_run_closure1_closure2_closure3.doCall(script14113052380471783888867.groovy) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.executeInContext(AbstractContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$executeInContext$0.call(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContext.gerrit(TriggerContext.groovy:201) at script14113052380471783888867$_run_closure1_closure2.doCall(script14113052380471783888867.groovy:3) at script14113052380471783888867$_run_closure1_closure2.doCall(script14113052380471783888867.groovy) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.executeInContext(AbstractContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$executeInContext$0.callStatic(Unknown Source) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.execute(AbstractContextHelper.groovy:32) at javaposse.jobdsl.dsl.helpers.AbstractContextHelper$execute.callCurrent(Unknown Source) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContextHelper.triggers(TriggerContextHelper.groovy:21) at javaposse.jobdsl.dsl.helpers.triggers.TriggerContextHelper$triggers.call(Unknown Source) at javaposse.jobdsl.dsl.Job.triggers(Job.groovy) at script14113052380471783888867$_run_closure1.doCall(script14113052380471783888867.groovy:2) at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy:32) at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy) at javaposse.jobdsl.dsl.DslFactory$job.callCurrent(Unknown Source) at script14113052380471783888867.run(script14113052380471783888867.groovy:1) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:69) at javaposse.jobdsl.dsl.DslScriptLoader$runDslEngineForParent.call(Unknown Source)
    No Bugmate found.