cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r125647 - /cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java
Date Wed, 19 Jan 2005 19:59:37 GMT
Author: rgoers
Date: Wed Jan 19 11:59:36 2005
New Revision: 125647

URL: http://svn.apache.org/viewcvs?view=rev&rev=125647
Log:
executor member attribute was never set. Fix NPE.

Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java?view=diff&rev=125647&p1=cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java&r1=125646&p2=cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java&r2=125647
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java
Wed Jan 19 11:59:36 2005
@@ -608,15 +608,16 @@
 
         final int shutdownWaitTimeMs = poolConfig.getChild("shutdown-wait-time-ms").getValueAsInteger(-1);
         final RunnableManager runnableManager = (RunnableManager)this.manager.lookup(RunnableManager.ROLE);
-        final QuartzThreadPool pool = new QuartzThreadPool(runnableManager.createPool(queueSize,
-                                                                                      maxPoolSize,
-                                                                                      minPoolSize,
-                                                                                      Thread.NORM_PRIORITY,
-                                                                                      false,
// no daemon
-                                                                                      keepAliveTimeMs,
-                                                                                      blockPolicy,
-                                                                                      m_shutdownGraceful,
-                                                                                      shutdownWaitTimeMs));
+        this.executor = runnableManager.createPool(queueSize,
+                                                   maxPoolSize,
+                                                   minPoolSize,
+                                                   Thread.NORM_PRIORITY,
+                                                   false, // no daemon
+                                                   keepAliveTimeMs,
+                                                   blockPolicy,
+                                                   m_shutdownGraceful,
+                                                   shutdownWaitTimeMs);
+        final QuartzThreadPool pool = new QuartzThreadPool(this.executor);
         return pool;
     }
 

Mime
View raw message