The fix that I proposed for JENKINS-15439 does not fully fix the issue. It fixes the issue with AbstractLazyLoadRunMap search failing but I still see some null values in RunList.

The null values are not present when Jenkins starts up but after a while (an hour or two) then the null values are present.

In my case I have worked out that I can cause a symptom of the error to occur by reading the rssAll feed. Immediately after jenkins starts up this reads normally but when things have gone wrong the feed returns the error.

A simple

wget -O /tmp/rssAll.xml http://localhost:8080/jenkins/rssAll

Will force the error.

Stacktrace as follows.

Caused by: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.487-SNAPSHOT.jar!/hudson/atom.jelly:48:44: <j:forEach> java.lang.NullPointerException
        at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60)
        at hudson.model.RSS.forwardToRss(RSS.java:86)
        at hudson.model.View.rss(View.java:957)
        at hudson.model.View.doRssAll(View.java:941)
        ... 69 more

I added some debug into the RunList constructor that gets called in the doRssAll method. That gives me approximately 500 null entries in the constructed RunList. All of these are maven submodule entries. At this moment I am not sure if it is every submodule entry (with a build record) that is null but that is certainly a close approximation.

11-Oct-2012 13:18:21 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod1
11-Oct-2012 13:18:21 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod1
11-Oct-2012 13:18:21 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod2
11-Oct-2012 13:18:22 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod3
11-Oct-2012 13:18:22 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod3
11-Oct-2012 13:18:22 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod3
11-Oct-2012 13:18:22 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod3
11-Oct-2012 13:18:22 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod3
11-Oct-2012 13:18:22 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod4
11-Oct-2012 13:18:22 hudson.util.RunList oldelvetCheckRunList
WARNING: Assertion error: null runlist entry for job=a.b.c.d:mod5
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to