Browse Source

无JIRA任务 打包失败,job未初始化

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

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

@ -1202,10 +1202,6 @@ public abstract class JobStoreSupport implements JobStore, Constants {
if (job == null) { if (job == null) {
try { try {
job = retrieveJob(conn, newTrigger.getJobKey()); job = retrieveJob(conn, newTrigger.getJobKey());
} catch (JobPersistenceException e) {
getLog().error(e.getMessage());
}
}
if (job == null) { if (job == null) {
throw new JobPersistenceException("The job (" throw new JobPersistenceException("The job ("
+ newTrigger.getJobKey() + newTrigger.getJobKey()
@ -1221,6 +1217,10 @@ public abstract class JobStoreSupport implements JobStore, Constants {
} else { } else {
getDelegate().insertTrigger(conn, newTrigger, state, job); getDelegate().insertTrigger(conn, newTrigger, state, job);
} }
} catch (JobPersistenceException e) {
getLog().error(e.getMessage());
}
}
} catch (Exception e) { } catch (Exception e) {
throw new JobPersistenceException("Couldn't store trigger '" + newTrigger.getKey() + "' for '" throw new JobPersistenceException("Couldn't store trigger '" + newTrigger.getKey() + "' for '"
+ newTrigger.getJobKey() + "' job:" + e.getMessage(), e); + newTrigger.getJobKey() + "' job:" + e.getMessage(), e);
@ -2987,6 +2987,7 @@ public abstract class JobStoreSupport implements JobStore, Constants {
} catch (SQLException sqle) { } catch (SQLException sqle) {
getLog().error("Unable to set trigger state to ERROR.", sqle); getLog().error("Unable to set trigger state to ERROR.", sqle);
} }
return null;
} }
if (trigger.getCalendarName() != null) { if (trigger.getCalendarName() != null) {

Loading…
Cancel
Save