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

Page loads breaks when View.getItems fails

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It is not uncommon for an error to be thrown from View.getItems. Currently Jenkins behaves poorly in this case: it displays an "oops" page with a cryptic stack trace

      java.lang.NullPointerException: Cannot invoke method isEmpty() on null object
      at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
      at hudson.model.View.main.run(main.groovy:6)
      

      that has no relation to the real error.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-17484 [ JENKINS-17484 ]
            Hide
            jglick Jesse Glick added a comment -

            Linking to some examples of this, but from this search you can see there at least a dozen cases.

            Show
            jglick Jesse Glick added a comment - Linking to some examples of this, but from this search you can see there at least a dozen cases.
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-25315 [ JENKINS-25315 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 2739 (Web Link)" [ 15408 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/resources/hudson/model/View/main.groovy
            core/src/main/resources/hudson/model/View/main.properties
            test/src/test/java/hudson/model/ViewTest.java
            http://jenkins-ci.org/commit/jenkins/fcf4ca7697b4a5293c95b221669f202621b178f7
            Log:
            [FIXED JENKINS-41825] Display an informative message, rather than a Groovy exception, when View.getItems fails.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/resources/hudson/model/View/main.groovy core/src/main/resources/hudson/model/View/main.properties test/src/test/java/hudson/model/ViewTest.java http://jenkins-ci.org/commit/jenkins/fcf4ca7697b4a5293c95b221669f202621b178f7 Log: [FIXED JENKINS-41825] Display an informative message, rather than a Groovy exception, when View.getItems fails.
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            olivergondza Oliver Gond┼ża made changes -
            Labels lts-candidate robustness 2.32.3-fixed robustness
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/resources/hudson/model/View/main.groovy
            core/src/main/resources/hudson/model/View/main.properties
            test/src/test/java/hudson/model/ViewTest.java
            http://jenkins-ci.org/commit/jenkins/da2f57c7221742bda5a97bf8c026d6b9dd42fcd5
            Log:
            [FIXED JENKINS-41825] Display an informative message, rather than a Groovy exception, when View.getItems fails.
            (cherry picked from commit fcf4ca7697b4a5293c95b221669f202621b178f7)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/resources/hudson/model/View/main.groovy core/src/main/resources/hudson/model/View/main.properties test/src/test/java/hudson/model/ViewTest.java http://jenkins-ci.org/commit/jenkins/da2f57c7221742bda5a97bf8c026d6b9dd42fcd5 Log: [FIXED JENKINS-41825] Display an informative message, rather than a Groovy exception, when View.getItems fails. (cherry picked from commit fcf4ca7697b4a5293c95b221669f202621b178f7)
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1950 (Web Link)" [ 18499 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: