I have problem with cron job implemented using Quartz Scheduler. It throws NullPointerException. This problem occurs only on server so I can't debug it. This is stacktrace:
[org.quartz.core.JobRunShell] Job myExampleJobs.simple job threw an unhandled
Exception:
java.lang.NullPointerException
at com.example.schedule.JobScheduler.autowireProcessor(JobScheduler.java:269)
at com.example.schedule.Job.execute(Job.java:17)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
JobScheduler
class doesn't have 269 lines and doesn't have autowireProcessor
method. Maybe this is method from Spring framework? I couldn't find anything about such method. Maybe problem concerns autowired classes in SimpleJob or in JobScheduler?
You have different version of the file, in the line
com.example.schedule.JobScheduler.autowireProcessor
seems like you have copy paste this code from somewhere and your accessing some example code which has a different version of the source.
Provide the more code if possible.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.