Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A83E2CDAA for ; Mon, 4 Jun 2012 11:25:24 +0000 (UTC) Received: (qmail 63826 invoked by uid 500); 4 Jun 2012 11:25:24 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 63789 invoked by uid 500); 4 Jun 2012 11:25:24 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 63759 invoked by uid 99); 4 Jun 2012 11:25:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 11:25:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 206991404B9 for ; Mon, 4 Jun 2012 11:25:23 +0000 (UTC) Date: Mon, 4 Jun 2012 11:25:22 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: <190527448.33558.1338809123136.JavaMail.jiratomcat@issues-vm> In-Reply-To: <759760865.43298.1336554606200.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-5259) misleading error message was thrown by camel-quartz component if camelContext ID was not unique MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-5259: ------------------------------- Fix Version/s: (was: 2.8.6) > misleading error message was thrown by camel-quartz component if camelContext ID was not unique > ----------------------------------------------------------------------------------------------- > > Key: CAMEL-5259 > URL: https://issues.apache.org/jira/browse/CAMEL-5259 > Project: Camel > Issue Type: Improvement > Components: camel-quartz > Affects Versions: 2.8.1 > Reporter: Joe Luo > Assignee: Claus Ibsen > Fix For: 2.9.3, 2.10.0 > > > Suppose we have two camel routes using camel-quartz endpoint: > Route one: > {code} > > > > > > > {code} > Route two: > {code} > > > > > > > {code} > Accidentally, both routes were configured using the same camelContext ID of "camel-quartz-context". After deploying the two camel routes, say, into ServiceMix container, following message will be thrown: > {quote} > 14:50:00,004 | ERROR | context_Worker-1 | JobRunShell | 195 - org.apache.servicemix.bundles.quartz - 1.8.5.1 | Job DEFAULT.quartz-endpoint9 threw an unhandled Exception: > org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: quartz://testTimer/TimerOne?cron=0+0%2F1+*+*+*+%3F due to: A Quartz job already exists with the name/group: TimerOne/testTimer > at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:444)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05] > at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:457)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05] > at org.apache.camel.component.quartz.CamelJob.execute(CamelJob.java:50)[215:org.apache.camel.camel-quartz:2.8.0.fuse-02-05] > at org.quartz.core.JobRunShell.run(JobRunShell.java:216)[195:org.apache.servicemix.bundles.quartz:1.8.5.1] > at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)[195:org.apache.servicemix.bundles.quartz:1.8.5.1] > Caused by: java.lang.IllegalArgumentException: A Quartz job already exists with the name/group: TimerOne/testTimer > at org.apache.camel.component.quartz.QuartzComponent.createEndpoint(QuartzComponent.java:130)[215:org.apache.camel.camel-quartz:2.8.0.fuse-02-05] > at org.apache.camel.component.quartz.QuartzComponent.createEndpoint(QuartzComponent.java:56)[215:org.apache.camel.camel-quartz:2.8.0.fuse-02-05] > at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:75)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05] > at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:426)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05] > ... 4 more > {quote} > despite two camel-quartz endpoints were using different job names. > The root cause was duplicate camelContext ID used by two camel routes as it has to be unique. However, the error message was certainly misleading. -- 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