[JIRA] (JENKINS-36980) NPE/500 errors after leaving blue ocean open for a while in RebuildPlugin

0 views
Skip to first unread message

mneale@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 1:09:01 AM7/27/16
to jenkinsc...@googlegroups.com
Michael Neale created an issue
 
Jenkins / Bug JENKINS-36980
NPE/500 errors after leaving blue ocean open for a while in RebuildPlugin
Issue Type: Bug Bug
Assignee: Vivek Pandey
Components: blueocean-plugin
Created: 2016/Jul/27 5:08 AM
Priority: Major Major
Reporter: Michael Neale

Uncovered by Ben Walding:

https://gist.github.com/bwalding/9d12d52371eb708c527ce93b786e36c0

This points to this line: https://github.com/jenkinsci/rebuild-plugin/blob/master/src/main/java/com/sonyericsson/rebuild/RebuildAction.java#L152 possibly

Currently he is using google auth for identity, and it seems to happen after 30 minutes.

Reloading the page causes things to work again just fine.

On theory is that session is not restablished cleanly and the null is the api is trying to access things in an unauthenticated state.

Investigation required.

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

bwalding@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 1:21:01 AM7/27/16
to jenkinsc...@googlegroups.com
Ben Walding updated an issue
Change By: Ben Walding
Uncovered by [~bwalding]:

https {noformat}
Caused by
: //gist java . github lang . reflect.InvocationTargetException
  at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
  at org.kohsuke.stapler.export.Property.safeGetValue(Property.java:145)
  ... 111 more
Caused by: java.lang.NullPointerException
  at
com / .sonyericsson.rebuild.RebuildAction.isRebuildDisbaled(RebuildAction.java:370)
  at com.sonyericsson.rebuild.RebuildAction.isRebuildAvailable(RebuildAction.java:360)
  at com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:186)
  at io.jenkins.blueocean.service.embedded.rest.ActionProxiesImpl.getUrlName(ActionProxiesImpl.java:33)
  at io.jenkins.blueocean.service.embedded.rest.ActionProxiesImpl.getLink(ActionProxiesImpl.java:43)
  at io.jenkins.blueocean.rest.hal.Links.getOrCreateSelfRef(Links.java:123)
  at io.jenkins.blueocean.rest.hal.Links.<init>(Links.java:52)
  at io.jenkins.blueocean.rest.model.Resource.getLinks(Resource.java:38)
  ... 116 more
{noformat}
*The original trace came from an internal instance -
bwalding /9d12d52371eb708c527ce93b786e36c0 can supply more information and request info on the instance if required*

This points to this line: https://github.com/jenkinsci/rebuild-plugin/blob/master/src/main/java/com/sonyericsson/rebuild/RebuildAction.java#L152 possibly

Currently he is using google auth for identity, and it seems to happen after 30 minutes.

Reloading the page causes things to work again just fine.

On theory is that session is not restablished re-established cleanly and the null is the api is trying to access things in an unauthenticated state.

Investigation required.

mneale@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 1:32:01 AM7/27/16
to jenkinsc...@googlegroups.com
Michael Neale commented on Bug JENKINS-36980
 
Re: NPE/500 errors after leaving blue ocean open for a while in RebuildPlugin

Interesting, in the repsonse body, I saw:

{"_class":"org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode"},{"_class":"org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode"},{"_class":"org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode"},{"_class":"org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode"},{"_class":"org.jenkinsci.plugins.workflow.c



  
  <!DOCTYPE html><html><head resURL="/static/a2a55019" data-rooturl="" data-resurl="/static/a2a55019">

Somehow it was truncated and then failed...

bwalding@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 1:33:01 AM7/27/16
to jenkinsc...@googlegroups.com
Ben Walding updated an issue
Change By: Ben Walding
Uncovered by [~bwalding]:

Request: 500 error accessing /blue/organizations/jenkins/<job>build/activity
Page: /blue/rest/organizations/jenkins/pipelines/<job>/build/runs/


{noformat}
Caused by: java.lang.reflect.InvocationTargetException

  at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:66)
  at org.kohsuke.stapler.export.Property.safeGetValue(Property.java:145)
  ... 111 more
Caused by: java.lang.NullPointerException
  at com.sonyericsson.rebuild.RebuildAction.isRebuildDisbaled(RebuildAction.java:370)

  at com.sonyericsson.rebuild.RebuildAction.isRebuildAvailable(RebuildAction.java:360)
  at com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:186)
  at io.jenkins.blueocean.service.embedded.rest.ActionProxiesImpl.getUrlName(ActionProxiesImpl.java:33)
  at io.jenkins.blueocean.service.embedded.rest.ActionProxiesImpl.getLink(ActionProxiesImpl.java:43)
  at io.jenkins.blueocean.rest.hal.Links.getOrCreateSelfRef(Links.java:123)
  at io.jenkins.blueocean.rest.hal.Links.&lt;init>(Links.java:52)
  at io.jenkins.blueocean.rest.model.Resource.getLinks(Resource.java:38)
  ... 116 more
{noformat}
*The original trace came from an internal instance - bwalding can supply more information and request info on the instance if required*


This points to this line: https://github.com/jenkinsci/rebuild-plugin/blob/master/src/main/java/com/sonyericsson/rebuild/RebuildAction.java#L152 possibly

Currently he is using google auth for identity, and it seems to happen after 30 minutes.

Reloading the page causes things to work again just fine.

On theory is that session is not re-established cleanly and the null is the api is trying to access things in an unauthenticated state.

Investigation required.

mneale@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 2:07:01 AM7/27/16
to jenkinsc...@googlegroups.com
 
Re: NPE/500 errors after leaving blue ocean open for a while in RebuildPlugin

Vivek Pandey OK I left a session open for 35 minutes with a default jenkins setup (with the authentication on) and there are various failures that happen when you try and use it again without refreshing the page. Not the same errors as ben but seems related to session time out/stale-ness.

mneale@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 2:08:01 AM7/27/16
to jenkinsc...@googlegroups.com

jdumay@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 2:11:02 AM7/27/16
to jenkinsc...@googlegroups.com

vivek.pandey@gmail.com (JIRA)

unread,
Jul 27, 2016, 2:49:02 AM7/27/16
to jenkinsc...@googlegroups.com
Vivek Pandey commented on Bug JENKINS-36980
 
Re: NPE/500 errors after leaving blue ocean open for a while in RebuildPlugin

Michael Neale Session timeout can be handled better once we have JWT support in, its still a WIP but not on master yet.

mneale@cloudbees.com (JIRA)

unread,
Jul 27, 2016, 2:52:01 AM7/27/16
to jenkinsc...@googlegroups.com

Vivek Pandey good to know. I suspect this is just a particularly hard failing of session timeout, but that is just an educated guess.

Reply all
Reply to author
Forward
0 new messages