quartz.properties
org.quartz.scheduler.instanceName = NutzbookScheduler
org.quartz.threadPool.threadCount = 3
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
org.quartz.scheduler.skipUpdateCheck=true
console.log
2016-07-20 14:47:57,838 org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:45) DEBUG - job define name=pub.mysci.lyy.quartz.job.GetZipFileInfoListJob cron=0/10 * * * * ?
2016-07-20 14:47:57,849 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:140) INFO - Nutz.Mvc[da] is up in 707ms
2016-07-20 14:47:57,850 org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:276) DEBUG - batch acquisition of 1 triggers
七月 20, 2016 2:47:57 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
七月 20, 2016 2:47:57 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
七月 20, 2016 2:47:57 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2209 ms
2016-07-20 14:48:00,006 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'getZipFileInfoListJob'<class pub.mysci.lyy.quartz.job.GetZipFileInfoListJob>
2016-07-20 14:48:00,006 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:178) DEBUG - >> Load definition name=getZipFileInfoListJob
2016-07-20 14:48:00,007 org.nutz.integration.quartz.NutQuartzJobFactory.newJob(NutQuartzJobFactory.java:30) WARN - Not ioc bean? fallback to SimpleJobFactory
org.nutz.ioc.IocException: [getZipFileInfoListJob] # For object [getZipFileInfoListJob] - type:[class pub.mysci.lyy.quartz.job.GetZipFileInfoListJob]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:217)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:235)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
at org.nutz.integration.quartz.NutQuartzJobFactory.newJob(NutQuartzJobFactory.java:27)
at org.quartz.core.JobRunShell.initialize(JobRunShell.java:127)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:375)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'getZipFileInfoListJob' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:181)
... 5 more
2016-07-20 14:48:00,009 org.quartz.simpl.SimpleJobFactory.newJob(SimpleJobFactory.java:51) DEBUG - Producing instance of Job 'DEFAULT.pub.mysci.lyy.quartz.job.GetZipFileInfoListJob', class=pub.mysci.lyy.quartz.job.GetZipFileInfoListJob
2016-07-20 14:48:00,010 org.quartz.core.JobRunShell.run(JobRunShell.java:201) DEBUG - Calling execute on job DEFAULT.pub.mysci.lyy.quartz.job.GetZipFileInfoListJob
2016-07-20 14:48:00,010 org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:276) DEBUG - batch acquisition of 1 triggers
2016-07-20 14:48:00,011 org.quartz.core.JobRunShell.run(JobRunShell.java:211) ERROR - Job DEFAULT.pub.mysci.lyy.quartz.job.GetZipFileInfoListJob threw an unhandled Exception:
java.lang.NullPointerException
at pub.mysci.lyy.quartz.job.GetZipFileInfoListJob.execute(GetZipFileInfoListJob.java:26)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2016-07-20 14:48:00,011 org.quartz.core.ErrorLogger.schedulerError(QuartzScheduler.java:2425) ERROR - Job (DEFAULT.pub.mysci.lyy.quartz.job.GetZipFileInfoListJob threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.NullPointerException
at pub.mysci.lyy.quartz.job.GetZipFileInfoListJob.execute(GetZipFileInfoListJob.java:26)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more