Quantcast

XMLSchedulingDataProcessorPlugin and quartz in the camel

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

XMLSchedulingDataProcessorPlugin and quartz in the camel

zerdo
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: XMLSchedulingDataProcessorPlugin and quartz in the camel

zerdo
This post has NOT been accepted by the mailing list yet.
If the file quartz_data.xml not be included on:
     <pre-processing-commands>
         <delete-jobs-in-group> * </ delete-jobs-in-group>
         <delete-triggers-in-group> * </ delete-triggers-in-group>
     </ pre-processing-commands>

Then the next time I deploy an application exception:

Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route restartRoute: Route[[From[jms:queue:jmsDeliveryErrorTemp?disableReplyTo=tr... because of org.quartz.ObjectAlreadyExistsException: Unable to store Job with name: 'job-START-restartRoute' and group: 'jobGroup-restartRoute', because one already exists with this identification.
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:170) [:2.8.0]
        at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:705) [:2.8.0]
        at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1659) [:2.8.0]
        at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1448) [:2.8.0]
        at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1346) [:2.8.0]
        at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:160) [:2.8.0]
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67) [:2.8.0]
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54) [:2.8.0]
        at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1324) [:2.8.0]
        at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:204) [:2.8.0]
        at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:99) [:2.8.0]
        ... 91 more
Caused by: org.apache.camel.RuntimeCamelException: org.quartz.ObjectAlreadyExistsException: Unable to store Job with name: 'job-START-restartRoute' and group: 'jobGroup-restartRoute', because one already exists with this identification.
        at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1145) [:2.8.0]
        at org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy.onInit(CronScheduledRoutePolicy.java:37) [:2.8.0]
        at org.apache.camel.impl.DefaultRouteContext.commit(DefaultRouteContext.java:199) [:2.8.0]
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:798) [:2.8.0]
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165) [:2.8.0]
        ... 101 more
Caused by: org.quartz.ObjectAlreadyExistsException: Unable to store Job with name: 'job-START-restartRoute' and group: 'jobGroup-restartRoute', because one already exists with this identification.
        at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob(JobStoreSupport.java:1097) [:]
        at org.quartz.impl.jdbcjobstore.JobStoreSupport$3.execute(JobStoreSupport.java:1046) [:]
        at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:3691) [:]
        at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3763) [:]
        at org.quartz.impl.jdbcjobstore.JobStoreTX.executeInLock(JobStoreTX.java:90) [:]
        at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3687) [:]
        at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJobAndTrigger(JobStoreSupport.java:1034) [:]
        at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:801) [:]
        at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:243) [:]
        at org.apache.camel.routepolicy.quartz.ScheduledRoutePolicy.scheduleRoute(ScheduledRoutePolicy.java:77) [:2.8.0]
        at org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy.doOnInit(CronScheduledRoutePolicy.java:66) [:2.8.0]
        at org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy.onInit(CronScheduledRoutePolicy.java:35) [:2.8.0]
        ... 104 more

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: XMLSchedulingDataProcessorPlugin and quartz in the camel

zerdo
This post has NOT been accepted by the mailing list yet.
It may be possible to delay the addition of entries about my camel quartz with respect to cleaning:
      <pre-processing-commands>
          <delete-jobs-in-group> * </ delete-jobs-in-group>
          <delete-triggers-in-group> * </ delete-triggers-in-group>
      </ Pre-processing-commands>
Loading...