Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36980

intermittent NPE/500 errors after leaving blue ocean open for a while

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • 1.0-pre-beta-1, 1.0-beta-1

      UPDATE: this seems to be happening from time to time, on Bens instance. It may not be related to auth. There is always a pattern of some JSON returned in the response, and then truncated, and then a HTML stacktrace.

      Uncovered by bwalding:

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

      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
      

      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.

            vivek Vivek Pandey
            michaelneale Michael Neale
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: