magicbest / myschedule

Automatically exported from code.google.com/p/myschedule
0 stars 0 forks source link

NPE in ScriptingSchedulerPlugin when file not found #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
$ scripts/run-java myschedule.quartz.extra.SchedulerMain 
scripts/quartz.properties.scripting
2011-10-20 07:34:52,461 INFO  main org.quartz.impl.StdSchedulerFactory:1157| 
Using default implementation for ThreadExecutor
2011-10-20 07:34:52,484 INFO  main org.quartz.core.SchedulerSignalerImpl:61| 
Initialized Scheduler Signaller of type: class 
org.quartz.core.SchedulerSignalerImpl
2011-10-20 07:34:52,485 INFO  main org.quartz.core.QuartzScheduler:243| Quartz 
Scheduler v.2.2.0-SNAPSHOT created.
2011-10-20 07:34:52,489 DEBUG main 
myschedule.quartz.extra.ScriptingSchedulerPlugin:86| Initializing scripting 
plugin MyScriptingPlugin with ScriptEngine Groovy
2011-10-20 07:34:52,579 DEBUG main 
myschedule.quartz.extra.ScriptingSchedulerPlugin:96| Running initialize script 
init-samples.groovy
2011-10-20 07:34:52,580 INFO  main org.quartz.core.QuartzScheduler:653| 
Scheduler QuartzScheduler_$_NON_CLUSTERED shutting down.
2011-10-20 07:34:52,581 INFO  main org.quartz.core.QuartzScheduler:572| 
Scheduler QuartzScheduler_$_NON_CLUSTERED paused.
2011-10-20 07:34:52,582 DEBUG main org.quartz.simpl.SimpleThreadPool:327| 
Shutting down threadpool...
2011-10-20 07:34:52,583 DEBUG main org.quartz.simpl.SimpleThreadPool:381| 
Shutdown of threadpool complete.
2011-10-20 07:34:52,584 INFO  main org.quartz.core.QuartzScheduler:725| 
Scheduler QuartzScheduler_$_NON_CLUSTERED shutdown complete.
Exception in thread "main" java.lang.NullPointerException
        at myschedule.quartz.extra.ScriptingSchedulerPlugin.runScript(ScriptingSchedulerPlugin.java:128)
        at myschedule.quartz.extra.ScriptingSchedulerPlugin.initialize(ScriptingSchedulerPlugin.java:97)
        at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1278)
        at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1484)
        at myschedule.quartz.extra.SchedulerTemplate.<init>(SchedulerTemplate.java:72)
        at myschedule.quartz.extra.SchedulerMain.main(SchedulerMain.java:21)
2011-10-20 07:34:52,967 DEBUG QuartzScheduler_Worker-2 
org.quartz.simpl.SimpleThreadPool:596| WorkerThread is shut down.
2011-10-20 07:34:52,967 DEBUG QuartzScheduler_Worker-3 
org.quartz.simpl.SimpleThreadPool:596| WorkerThread is shut down.
2011-10-20 07:34:52,967 DEBUG QuartzScheduler_Worker-4 
org.quartz.simpl.SimpleThreadPool:596| WorkerThread is shut down.
2011-10-20 07:34:52,967 DEBUG QuartzScheduler_Worker-1 
org.quartz.simpl.SimpleThreadPool:596| WorkerThread is shut down.
2011-10-20 07:34:52,967 DEBUG QuartzScheduler_Worker-5 
org.quartz.simpl.SimpleThreadPool:596| WorkerThread is shut down.

Original issue reported on code.google.com by saltnlight5 on 20 Oct 2011 at 11:37

GoogleCodeExporter commented 8 years ago
Improvement: current script file is either in absolute or relative path. It 
would be nice to support 'classpath:' as well.

Original comment by saltnlight5 on 20 Oct 2011 at 11:41

GoogleCodeExporter commented 8 years ago
Fixed in dfe9590c87ae

Original comment by saltnlight5 on 21 Oct 2011 at 2:49