Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C53FD10ED0 for ; Thu, 14 Nov 2013 07:25:00 +0000 (UTC) Received: (qmail 70645 invoked by uid 500); 14 Nov 2013 07:24:56 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 70398 invoked by uid 500); 14 Nov 2013 07:24:55 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 70387 invoked by uid 99); 14 Nov 2013 07:24:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 07:24:54 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 07:24:48 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VgrHu-0004SG-5m for users@camel.apache.org; Wed, 13 Nov 2013 23:24:26 -0800 Date: Wed, 13 Nov 2013 23:24:26 -0800 (PST) From: Babak Vahdat To: users@camel.apache.org Message-ID: <1384413866172-5743238.post@n5.nabble.com> In-Reply-To: <1384404678529-5743232.post@n5.nabble.com> References: <1379843986852-5739997.post@n5.nabble.com> <1380359301363-5740345.post@n5.nabble.com> <1381897911615-5741632.post@n5.nabble.com> <1381907006864-5741637.post@n5.nabble.com> <1384404678529-5743232.post@n5.nabble.com> Subject: Re: Camel quartz misfires and route not getting run / triggered after exception:ObjectAlreadyExistsException MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi As you've already reported by your first post, only increasing the number of running VM's makes this exception to happen (from 2 to 7). This CAN be a hint for a race-condition somewhere. There was a similar problem being reported while ago: https://issues.apache.org/jira/browse/CAMEL-6686 The only reason why we could fix that was because we could reproduce the same exception inside a test, which is now added to the code base of this Camel module. In your case I was NOT able to do the same. If you could somehow provide a test or a sample project then we could dig into this to see if we can find the root cause of the problem and probably fix it. There's also the following Camel test module you could make use of for this: http://camel.apache.org/blueprint-testing.html Babak lakshmi.prashant wrote > Hi, > > Can you kindly explain why the route starts failing after running for > sometime.. > Why is the doAddJob() getting called, after few runs of a schedule have > already tun, as reported in the exception? > The race condition can happen only at the start of the route, while > scheduling the quartz job. But it gets reported after few runs in the > below exception trace: > > Thanks, > Lakshmi > > Exception Trace: > ERROR#org.apache.camel.blueprint.BlueprintCamelContext##anonymous#Blueprint > Extender: 3##avatarcl#aq4appaq4t#iflmap#null#null# > Error occurred during starting Camel: CamelContext(context4) due > Unable to store Trigger with name: 'schedule3' and group: 'Camel', because > one already exists with this > identification.org.quartz.ObjectAlreadyExistsException: > Unable to store Trigger with name: 'schedule3' and group: 'Camel', because > one already exists with this identification. at > org.quartz.impl.jdbcjobstore.JobStoreSupport.storeTrigger(JobStoreSupport.java:1200) > at > org.quartz.impl.jdbcjobstore.JobStoreSupport$3.execute(JobStoreSupport.java:1072) > at > org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:3716) > at > org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3788) > at > org.quartz.impl.jdbcjobstore.JobStoreTX.executeInLock(JobStoreTX.java:90) > at > org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3712) > at > org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJobAndTrigger(JobStoreSupport.java:1059) > at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:822) > at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:243) at > org.apache.camel.component.quartz.QuartzComponent.doAddJob(QuartzComponent.java:232) > at > org.apache.camel.component.quartz.QuartzComponent.addJob(QuartzComponent.java:222) > at > org.apache.camel.component.quartz.QuartzEndpoint.addTrigger(QuartzEndpoint.java:81) > at > org.apache.camel.component.quartz.QuartzEndpoint.consumerStarted(QuartzEndpoint.java:213) > at > org.apache.camel.component.quartz.QuartzConsumer.doStart(QuartzConsumer.java:39) > at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) > at > org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1819) > at > org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:2113) > at > org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:2049) > at > org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1979) > at > org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1758) > at > org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1633) > at > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1500) -- View this message in context: http://camel.465427.n5.nabble.com/Camel-quartz-misfires-and-route-not-getting-run-triggered-after-exception-ObjectAlreadyExistsExceptin-tp5739997p5743238.html Sent from the Camel - Users mailing list archive at Nabble.com.