Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Cron thread throw an exception
Cron thread throw an exception [message #1273737] Thu, 20 March 2014 13:14 Go to next message
Konrad Zielinski is currently offline Konrad ZielinskiFriend
Messages: 18
Registered: December 2013
Junior Member
Hi,
Today I removed the errors from logs, unfortunately I can't deal with one of the warnings

Mar 20, 2014 2:10:57 PM hudson.triggers.Trigger$Cron doRun
WARNING: Cron thread throw an exception
com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
        at hudson.model.TopLevelItemsCache.get(TopLevelItemsCache.java:78)
        at hudson.model.LazyTopLevelItem.item(LazyTopLevelItem.java:144)
        at hudson.model.LazyTopLevelItem.hasPermission(LazyTopLevelItem.java:271)
        at hudson.model.Hudson.getItems(Hudson.java:1303)
        at hudson.model.Hudson.getItems(Hudson.java:223)
        at hudson.model.Hudson.getAllItems(Hudson.java:1367)
        at hudson.triggers.Trigger.checkTriggers(Trigger.java:228)
        at hudson.triggers.Trigger$Cron.doRun(Trigger.java:185)
        at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:43)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
        at hudson.model.TopLevelItemsCache.get(TopLevelItemsCache.java:78)
        at hudson.model.LazyTopLevelItem.item(LazyTopLevelItem.java:144)
        at hudson.model.LazyTopLevelItem.hasPermission(LazyTopLevelItem.java:271)
        at hudson.model.Hudson.getItem(Hudson.java:2175)
        at hudson.model.Job.onLoad(Job.java:329)
        at hudson.model.AbstractProject.onLoad(AbstractProject.java:325)
        at hudson.model.BaseBuildableProject.onLoad(BaseBuildableProject.java:91)
        at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:64)
        at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:57)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
        ... 14 more
Caused by: java.lang.NullPointerException
        at hudson.model.Job.getCascadingJobProperties(Job.java:694)
        at hudson.model.Job.getAllProperties(Job.java:849)
        at hudson.model.Job.onLoad(Job.java:362)
        at hudson.model.AbstractProject.onLoad(AbstractProject.java:325)
        at hudson.model.BaseBuildableProject.onLoad(BaseBuildableProject.java:91)
        at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:64)
        at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:57)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
        ... 30 more


any idea?
Re: Cron thread throw an exception [message #1273801 is a reply to message #1273737] Thu, 20 March 2014 15:03 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Which version of Hudson are you using?

Winston Prakash
Eclipse Hudson team
Re: Cron thread throw an exception [message #1274245 is a reply to message #1273801] Fri, 21 March 2014 07:24 Go to previous messageGo to next message
Konrad Zielinski is currently offline Konrad ZielinskiFriend
Messages: 18
Registered: December 2013
Junior Member
Hudson: 3.1.2 (via tomcat6)
OS: Ubuntu

[Updated on: Fri, 21 March 2014 07:44]

Report message to a moderator

Re: Cron thread throw an exception [message #1697199 is a reply to message #1273737] Tue, 02 June 2015 11:47 Go to previous messageGo to next message
Sajjad Rehman is currently offline Sajjad RehmanFriend
Messages: 1
Registered: June 2015
Junior Member
Hi
By any chance do you remember how you fixed it as I am getting similar issue:
hudson.triggers.Trigger$Cron doRun

Cron thread throw an exception
java.lang.NullPointerException
at hudson.triggers.Trigger.checkTriggers(Trigger.java:263)
at hudson.triggers.Trigger$Cron.doRun(Trigger.java:215)
Re: Cron thread throw an exception [message #1698330 is a reply to message #1697199] Sun, 14 June 2015 05:12 Go to previous message
Christopher Trevarthen is currently offline Christopher TrevarthenFriend
Messages: 1
Registered: June 2015
Junior Member
I recently ran into this problem, too. None of my cron-scheduled builds would run because a few of them were crashing the cron trigger. The offending builds were not even scheduled to run periodically, per se, but they did have the Github Pull Request Builder plugin enabled.

To find the offending jobs, I turned on logging for "hudson.triggers" using the instructions:

wiki.jenkins-ci.org/display/JENKINS/Logging

I set the log level to "ALL" and was able to quickly see the job(s) that were causing the exception.

I edited those jobs to remove the Github Pull Request Builder flag in the "Build Triggers" section.

Once the logs looked clean, my cron jobs started triggering again!
Previous Topic:Internal Server Error with the Google Login Plugin on Hudson 3.3.0-RC1
Next Topic:Perform testing (protactor / selenium) with jenkins with 1024x768 resolution
Goto Forum:
  


Current Time: Fri Aug 18 22:12:41 GMT 2017

Powered by FUDForum. Page generated in 0.02467 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software