synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u...@apache.org
Subject svn commit: r605121 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
Date Tue, 18 Dec 2007 07:46:47 GMT
Author: upul
Date: Mon Dec 17 23:46:47 2007
New Revision: 605121

URL: http://svn.apache.org/viewvc?rev=605121&view=rev
Log:
fixed null error running one or more tasks when tasks edited

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java?rev=605121&r1=605120&r2=605121&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
Mon Dec 17 23:46:47 2007
@@ -122,6 +122,14 @@
       
         try {
             sch = DirectSchedulerFactory.getInstance().getScheduler();
+            if (sch == null) {
+              DirectSchedulerFactory.getInstance().createVolatileScheduler(THREADPOOLSIZE);
+              sch = DirectSchedulerFactory.getInstance().getScheduler();
+            }
+            
+            if(sch == null) {
+              throw new NullPointerException("Scheduler is null");
+            }
 
             Trigger trigger = null;
             if (cron == null) {



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message