Dinusha Dilrukshi created SYNAPSE-885:
-----------------------------------------

             Summary: Need to check whether task is already running before 
scheduling it.
                 Key: SYNAPSE-885
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-885
             Project: Synapse
          Issue Type: Bug
         Environment: synapse trunk.
            Reporter: Dinusha Dilrukshi


It throws following exception if we try to schedule an already running task,

{org.apache.synapse.startup.quartz.SimpleQuartz} - Error starting up Scheduler 
: Error scheduling job : JobDetail 'synapse.simple.quartz.stock': jobClass: 
'org.apache.synapse.startup.quartz.SimpleQuartzJob isStateful: false 
isVolatile: false isDurable: false requestsRecovers: false with trigger Trigger 
'synapse.simple.quartz.stock-trigger--8523023903163020996': triggerClass: 
'org.quartz.SimpleTrigger isVolatile: true calendar: 'null' misfireInstruction: 
0 nextFireTime: Wed Jun 20 00:57:46 PDT 2012 
{org.apache.synapse.startup.quartz.SimpleQuartz}
org.apache.synapse.task.SynapseTaskException: Error scheduling job : JobDetail 
'synapse.simple.quartz.stock': jobClass: 
'org.apache.synapse.startup.quartz.SimpleQuartzJob isStateful: false 
isVolatile: false isDurable: false requestsRecovers: false with trigger Trigger 
'synapse.simple.quartz.stock-trigger--8523023903163020996': triggerClass: 
'org.quartz.SimpleTrigger isVolatile: true calendar: 'null' misfireInstruction: 
0 nextFireTime: Wed Jun 20 00:57:46 PDT 2012
        at 
org.apache.synapse.task.TaskScheduler.scheduleTask(TaskScheduler.java:266)
        at 
org.apache.synapse.startup.quartz.SimpleQuartz.init(SimpleQuartz.java:178)
        at 
org.apache.synapse.config.SynapseConfiguration.init(SynapseConfiguration.java:1398)
        at 
org.apache.synapse.Axis2SynapseController.createSynapseEnvironment(Axis2SynapseController.java:421)
        at org.apache.synapse.ServerManager.start(ServerManager.java:181) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to