[
https://issues.apache.org/jira/browse/SYNAPSE-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hiranya Jayathilaka resolved SYNAPSE-885.
-----------------------------------------
Resolution: Fixed
Fix Version/s: NIGHTLY
Patch applied with some modifications. Thanks Dinusha for the contribution.
> 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
> Assignee: Hiranya Jayathilaka
> Fix For: NIGHTLY
>
> Attachments: SYNAPSE-885.patch
>
>
> 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
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]