From 131bd1bf323be8eff64ec502bacea21183add004 Mon Sep 17 00:00:00 2001 From: charile_Lu Date: Mon, 17 Aug 2020 14:05:50 +0800 Subject: [PATCH] =?UTF-8?q?DEC-14434=20pref=EF=BC=9A=E6=B7=BB=E5=8A=A0quar?= =?UTF-8?q?tz=E5=B0=86=E8=A7=A6=E5=8F=91=E5=99=A8=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=BD=AE=E4=B8=BAERROR=E6=97=B6=E7=9A=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/third/v2/org/quartz/core/QuartzSchedulerThread.java | 2 ++ .../third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java | 1 + 2 files changed, 3 insertions(+) diff --git a/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/core/QuartzSchedulerThread.java b/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/core/QuartzSchedulerThread.java index 6f6c053c7..658001956 100644 --- a/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/core/QuartzSchedulerThread.java +++ b/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/core/QuartzSchedulerThread.java @@ -375,6 +375,7 @@ public class QuartzSchedulerThread extends Thread { shell = qsRsrcs.getJobRunShellFactory().createJobRunShell(bndle); shell.initialize(qs); } catch (SchedulerException se) { + org.jboss.logging.Logger.getLogger(getClass()).error("---------error occur in job run shell initialize, jobKey:"+triggers.get(i).getJobKey(), se); qsRsrcs.getJobStore().triggeredJobComplete(triggers.get(i), bndle.getJobDetail(), CompletedExecutionInstruction.SET_ALL_JOB_TRIGGERS_ERROR); continue; } @@ -385,6 +386,7 @@ public class QuartzSchedulerThread extends Thread { // a thread pool being used concurrently - which the docs // say not to do... getLog().error("ThreadPool.runInThread() return false!"); + org.jboss.logging.Logger.getLogger(getClass()).error("---------error occur in job shell run in thread, jobKey:"+triggers.get(i).getJobKey()); qsRsrcs.getJobStore().triggeredJobComplete(triggers.get(i), bndle.getJobDetail(), CompletedExecutionInstruction.SET_ALL_JOB_TRIGGERS_ERROR); } diff --git a/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java b/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java index a140dfe4f..d244f55e7 100644 --- a/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java +++ b/fine-quartz/src/main/java/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java @@ -1417,6 +1417,7 @@ public abstract class JobStoreSupport implements JobStore, Constants { return getDelegate().selectJobDetail(conn, key, getClassLoadHelper()); } catch (ClassNotFoundException e) { + org.jboss.logging.Logger.getLogger(getClass()).error("---------job class not found, jobKey: "+key, e); throw new JobPersistenceException( "Couldn't retrieve job because a required class was not found: " + e.getMessage(), e);