[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Simple Trigger returning ERROR status but job ran ok  XML
Forum Index -> Quartz
Author Message
c_leinad

neo

Joined: 07/23/2012 12:16:45
Messages: 1
Offline

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?
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1654
Online


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.
wangyin

neo

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.
[Email] [MSN]
wangyin

neo

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.
[Email] [MSN]
wangyin

neo

Joined: 07/06/2012 00:42:06
Messages: 9
Location: BeiJing China
Offline

See also
http://forums.terracotta.org/forums/posts/list/5191.page
[Email] [MSN]
wangyin

neo

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.
[Email] [MSN]
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team