[JIRA] (JENKINS-37099) Null value passed through ParametersAction causes all jobs to throw StackTrace

4 views
Skip to first unread message

stacey.fletcher@cox.com (JIRA)

unread,
Aug 1, 2016, 2:03:01 PM8/1/16
to jenkinsc...@googlegroups.com
Stacey Fletcher created an issue
 
Jenkins / Bug JENKINS-37099
Null value passed through ParametersAction causes all jobs to throw StackTrace
Issue Type: Bug Bug
Assignee: vjuranek
Attachments: jenkins_stack_trace.txt
Components: core, groovy-plugin
Created: 2016/Aug/01 6:02 PM
Environment: Jenkins 1.642.4
Labels: Groovy NPE ParametersAction Queue isStuck
Priority: Major Major
Reporter: Stacey Fletcher

I was attempting to trigger a build using the System Groovy Script with the following method call:

item.scheduleBuild2(0, new Cause.UpstreamCause(build), new ParametersAction(null))

The passing of null should cause an NPE, but because of this all jobs that were submitted from then on were stuck in our Build Queue. In order to fix it we had to bounce our Jenkins instance.

Initial Stack Trace:
SEVERE: Timer task hudson.model.LoadStatistics$LoadStatisticsUpdater@1b2ee745 failed
java.lang.NullPointerException
at hudson.model.ParametersAction.getAssignedLabel(ParametersAction.java:140)
at hudson.model.Queue$Item.getAssignedLabelFor(Queue.java:2079)
at hudson.model.Label$1.matches(Label.java:120)
at hudson.model.LoadStatistics.computeSnapshot(LoadStatistics.java:361)
at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:395)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

Stack Traces that occurred on all other jobs is attached.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 2, 2017, 2:04:05 PM3/2/17
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Labels: Groovy NPE ParametersAction Queue isStuck newbie-friendly

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 12, 2017, 8:01:06 AM3/12/17
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Component/s: groovy-plugin
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 12, 2017, 8:01:07 AM3/12/17
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 12, 2017, 8:03:04 AM3/12/17
to jenkinsc...@googlegroups.com

mmclaughlin@cloudbees.com (JIRA)

unread,
Aug 7, 2018, 1:36:02 PM8/7/18
to jenkinsc...@googlegroups.com

Looks like this has been fixed already

This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

mmclaughlin@cloudbees.com (JIRA)

unread,
Aug 7, 2018, 1:41:03 PM8/7/18
to jenkinsc...@googlegroups.com

mmclaughlin@cloudbees.com (JIRA)

unread,
Aug 7, 2018, 1:41:03 PM8/7/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages