Created
October 15, 2011 18:11
-
-
Save mutuelinvestor/1289912 to your computer and use it in GitHub Desktop.
scheduled job test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_job.rb | |
class MyJob | |
attr_accessor :log | |
def run() | |
log.info( "Executing the job" ) | |
end | |
end | |
torquebox.yml | |
application: | |
jobs: | |
MyJob: | |
job: MyJob | |
cron: '*/5 * * * * ?' | |
description: Testing scheduled job functionality | |
Error: | |
14:10:40,005 INFO [org.quartz.core.JobRunShell] (JobScheduler$mi1-knob.yml_Worker-3) Job mi1-knob.yml.MyJob threw a JobExecutionException: : org.quartz.JobExecutionException: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `info' for nil:NilClass [See nested exception: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `info' for nil:NilClass] | |
at org.torquebox.jobs.RubyJobProxy.execute(RubyJobProxy.java:47) [torquebox-jobs.jar:2.x.incremental.435] | |
at org.quartz.core.JobRunShell.run(JobRunShell.java:216) [quartz.jar:2.x.incremental.435] | |
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) [quartz.jar:2.x.incremental.435] | |
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `info' for nil:NilClass | |
at MyJob.run(vfs:/Users/mutuelinvestor/Development/mi1/app/jobs/my_job.rb:5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment