Browse Source

DEC-7569 定时调度模块启动异常

final/10.0.3
Lanlan 6 years ago
parent
commit
ca2e8dbd7e
  1. 7
      fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java

7
fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java

@ -1199,15 +1199,15 @@ public abstract class JobStoreSupport implements JobStore, Constants {
}
}
if (job == null) {
try {
if (job == null) {
job = retrieveJob(conn, newTrigger.getJobKey());
}
if (job == null) {
throw new JobPersistenceException("The job ("
+ newTrigger.getJobKey()
+ ") referenced by the trigger does not exist.");
}
if (job.isConcurrentExectionDisallowed() && !recovering) {
state = checkBlockedState(conn, job.getKey(), state);
}
@ -1220,7 +1220,6 @@ public abstract class JobStoreSupport implements JobStore, Constants {
} catch (JobPersistenceException e) {
getLog().error(e.getMessage());
}
}
} catch (Exception e) {
throw new JobPersistenceException("Couldn't store trigger '" + newTrigger.getKey() + "' for '"
+ newTrigger.getJobKey() + "' job:" + e.getMessage(), e);
@ -2987,7 +2986,7 @@ public abstract class JobStoreSupport implements JobStore, Constants {
} catch (SQLException sqle) {
getLog().error("Unable to set trigger state to ERROR.", sqle);
}
return null;
throw jpe;
}
if (trigger.getCalendarName() != null) {

Loading…
Cancel
Save