Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Add some more logging to try to diagnose occasional NPE on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrowning committed Mar 19, 2014
1 parent f494370 commit 1b0a005
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -48,6 +48,9 @@ public Job newJob(TriggerFiredBundle bundle, Scheduler scheduler) throws Schedul
JobDetail jobDetail = bundle.getJobDetail();

ComponentResolver resolver = this.componentResolvers.get(jobDetail.getKey());
if (resolver == null) {
log.errorf("JobScheduler.newJob found no ComponentResolver for %s", jobDetail.getKey());
}
RubyJobProxy rubyJob = new RubyJobProxy(this.rubyRuntimePoolInjector.getValue(), resolver, jobDetail);

return rubyJob;
Expand All @@ -59,6 +62,7 @@ public void start() throws IOException, SchedulerException {
}

public void addComponentResolver(JobKey key, ComponentResolver resolver) {
log.tracef("JobScheduler.addComponentResolver for %s with resolver %s", key, resolver);
this.componentResolvers.put(key, resolver);
}

Expand Down

0 comments on commit 1b0a005

Please sign in to comment.