[JIRA] (JENKINS-60504) Nullpointer exception

24 views
Skip to first unread message

matt.wilson@entrust.com (JIRA)

unread,
Dec 16, 2019, 9:15:02 AM12/16/19
to jenkinsc...@googlegroups.com
Matt Wilson created an issue
 
Jenkins / Bug JENKINS-60504
Nullpointer exception
Issue Type: Bug Bug
Assignee: Gustaf Lundh
Attachments: image-2019-12-16-09-09-04-827.png, jenkins-issue.txt
Components: downstream-build-cache-plugin, yet-another-build-visualizer-plugin
Created: 2019-12-16 14:14
Environment: Centos 7
Jenkins LTSS 2.190.3
Labels: plugin
Priority: Major Major
Reporter: Matt Wilson

I tagged both components because I'm not sure which is triggering this behavior.

We installed the visualizer plugin on Friday (its awesome btw!).  The Update Center was used to apply the plugin, the only dependency added was the "down stream build cache" plugin.

Everything seemed to be functioning fine after that.  The flowcharts looked great.  Exactly what we've been looking for.

I come in Monday and I'm seeing the jenkins "oops!" screen all over the place.

 

 

 

16-Dec-2019 07:42:55.880 SEVERE [Handling GET /job/lb/job/ecs/job/ECS_12.10.0/74/yabv/buildFlow from 10.4.160.104 : https-jsse-nio-9443-exec-16] org.apache.catalina.core.ApplicationContext.log Error while serving https://************/74/yabv/buildFlow
java.lang.reflect.InvocationTargetException
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)

<...>

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException

 

I've attached a sample dump.

These plugin additions where the only change in my system in the last week or so.  I tried a Jenkins service restart but the problem persisted.

Disabling the two new plugins returned my system to normal.

We'd love to get this functionality back.  If there is an information I can provide to help debug let me know.

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

matt.wilson@entrust.com (JIRA)

unread,
Dec 16, 2019, 10:04:02 AM12/16/19
to jenkinsc...@googlegroups.com
Matt Wilson updated an issue
Change By: Matt Wilson
Attachment: jenkins-issue-sg.txt
I tagged both components because I'm not sure which is triggering this behavior.

We installed the visualizer plugin on Friday (its awesome btw!).  The Update Center was used to apply the plugin, the only dependency added was the "down stream build cache" plugin.

Everything seemed to be functioning fine after that.  The flowcharts looked great.  Exactly what we've been looking for.

I come in Monday and I'm seeing the jenkins "oops!" screen all over the place.

!image-2019-12-16-09-09-04-827.png!

 

 

 

16-Dec-2019 07:42:55.880 SEVERE [Handling GET /job/lb/job/ecs/job/ECS_12.10.0/74/yabv/buildFlow from 10.4.160.104 : https-jsse-nio-9443-exec-16] org.apache.catalina.core.ApplicationContext.log Error while serving
[ https://************/74/yabv/buildFlow |https://%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A/74/yabv/buildFlow]
java.lang.reflect.InvocationTargetException
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)

<...>

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException

 

I've attached a sample dump from the logs (jenkins-issue . txt), and a dump from the screen of what a page outputs (jenkins-issue-sg.txt).

These plugin additions where the only change in my system in the last week or so.  I tried a Jenkins service restart but the problem persisted.

Disabling the two new plugins returned my system to normal.

We'd love to get this functionality back.  If there is an information I can provide to help debug let me know.

 

 

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 16, 2019, 4:25:04 PM12/16/19
to jenkinsc...@googlegroups.com
Gustaf Lundh commented on Bug JENKINS-60504
 
Re: Nullpointer exception

Thanks for the (great) report!

From the stacktrace, it seems that the NPE is triggered when there is a build in the queue that has been triggered by an upstream build that the logged in user does not have access rights to read.

Do you have projects that are hidden from the user experiencing the NPE?

I'll try to push a new version with some extra NPE checks this week.

matt.wilson@entrust.com (JIRA)

unread,
Dec 17, 2019, 8:03:03 AM12/17/19
to jenkinsc...@googlegroups.com
Matt Wilson commented on Bug JENKINS-60504
 
Re: Nullpointer exception

That could be the case.  We use folder permissions quite a bit to block off certain jobs.  That said, I was seeing this error myself on pretty much any job I looked at (my account has full access to all of Jenkins).

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 20, 2019, 10:09:02 AM12/20/19
to jenkinsc...@googlegroups.com
Gustaf Lundh started work on Bug JENKINS-60504
 
Change By: Gustaf Lundh
Status: Open In Progress

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 20, 2019, 10:09:03 AM12/20/19
to jenkinsc...@googlegroups.com
Change By: Gustaf Lundh
Status: In Progress Review

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 20, 2019, 10:09:03 AM12/20/19
to jenkinsc...@googlegroups.com
 

Fix in 1.9.8

Change By: Gustaf Lundh
Status: In Review Resolved
Resolution: Fixed

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 20, 2019, 10:10:03 AM12/20/19
to jenkinsc...@googlegroups.com
Change By: Gustaf Lundh
Status: Resolved Fixed but Unreleased

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 20, 2019, 10:10:04 AM12/20/19
to jenkinsc...@googlegroups.com
Change By: Gustaf Lundh
Status: Fixed but Unreleased Closed
Released As: 1.9.8

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 20, 2019, 10:10:05 AM12/20/19
to jenkinsc...@googlegroups.com
Gustaf Lundh commented on Bug JENKINS-60504
 
Re: Nullpointer exception

Hi Matt,

The issue should be solve. Please try 1.9.8 and reopen the issue if it reappears.

gustaf.lundh@gmail.com (JIRA)

unread,
Dec 20, 2019, 10:10:05 AM12/20/19
to jenkinsc...@googlegroups.com
Gustaf Lundh edited a comment on Bug JENKINS-60504
 
Re: Nullpointer exception
Hi Matt,

The issue should be
solve solved . Please try 1.9.8 and reopen the issue if it reappears.

matt.wilson@entrust.com (JIRA)

unread,
Dec 20, 2019, 10:13:02 AM12/20/19
to jenkinsc...@googlegroups.com
Matt Wilson commented on Bug JENKINS-60504
 
Re: Nullpointer exception

Thanks, I'll likely not get a chance to install it until the 30th. 

cheers!

gustaf.lundh@gmail.com (JIRA)

unread,
Jan 9, 2020, 7:47:02 AM1/9/20
to jenkinsc...@googlegroups.com
Gustaf Lundh commented on Bug JENKINS-60504
 
Re: Nullpointer exception

Hi Matt,

Have you had a chance to tryout the fix yet?

matt.wilson@entrust.com (JIRA)

unread,
Jan 9, 2020, 8:08:01 AM1/9/20
to jenkinsc...@googlegroups.com
Matt Wilson commented on Bug JENKINS-60504
 
Re: Nullpointer exception

Yes, I did get it updated and reactivated on Dec 30.  We're just in our first regular work week post holidays, usage levels are back to a normal high.  So far we have had no re-occurrence of the problem!  All is well.  Thanks for the help!

Reply all
Reply to author
Forward
0 new messages