I am using quartz 1.8.6 and I am using a Simple Trigger to run a job. The job runs fine with no exceptions but the status on the trigger is set to ERROR. I can run that same job using a Cron Trigger and the status comes back as COMPLETE. I am not getting any ClassNotFound errors either. Can anyone please help?
ERROR state is only reached if the associated job class cannot be instantiated by the JobFactory. This is usually because the job class cannot be loaded or the class does not have a public no-arg constructor. It can also be for various other reasons, such as being out of heap space (unable to produce an instance).
There should be some logging about the problem being encountered.
Joined: 07/06/2012 00:42:06
Messages: 9
Location: BeiJing China
Offline
I ran into this issue too with quartz 1.8.6.
I'm sure all classes of jobs are present on the classpath but none log is present to indicate the trigger is set to be ERROR state.In fact my log level is debug and I found all log files with key word such as "ERROR","WARN",and "Exception" and nothing found at last.
More worse is that the application has been deploy on production line.
After googled I found that many users complain at the issue too but no result at last.
Joined: 07/06/2012 00:42:06
Messages: 9
Location: BeiJing China
Offline
In addition,I use Quartz cluster with oracle database.
It works well for 6 days and I found one trigger got not executed from one day accroding to log and its status was set to be ERROR.
Joined: 07/06/2012 00:42:06
Messages: 9
Location: BeiJing China
Offline
After collecting all log files of cluster and re-parsing them, I found the error log finally.
It indicates one job is instantiated on one node but without presence of job class on classpath(ClassNotFoundException).
I have broken the logic of acquireNextTrigger method of JobStoreTX class.
After fixing I believe I have solved this issue.
Thanks for attention.