Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 81139 invoked from network); 10 May 2010 20:14:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 May 2010 20:14:08 -0000 Received: (qmail 69943 invoked by uid 500); 10 May 2010 20:14:08 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 69908 invoked by uid 500); 10 May 2010 20:14:08 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 69900 invoked by uid 500); 10 May 2010 20:14:08 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 69897 invoked by uid 99); 10 May 2010 20:14:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 20:14:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 20:14:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4AKDguD026433 for ; Mon, 10 May 2010 20:13:43 GMT Message-ID: <20422307.3911273522422790.JavaMail.jira@thor> Date: Mon, 10 May 2010 16:13:42 -0400 (EDT) From: "Scott Parkerson (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-2707) camel-quartz stracktraces when setting up a route with no group-name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org camel-quartz stracktraces when setting up a route with no group-name -------------------------------------------------------------------- Key: CAMEL-2707 URL: https://issues.apache.org/activemq/browse/CAMEL-2707 Project: Apache Camel Issue Type: Bug Components: camel-quartz Affects Versions: 2.1.0 Environment: Apache Camel 2.1.0 Reporter: Scott Parkerson Priority: Minor >From the [camel-quartz documentation|http://camel.apache.org/quartz.html]: {quote}The component uses either a CronTrigger or a SimpleTrigger. If no cron expression is provided, the component uses a simple trigger. If no groupName is provided, the quartz component uses the Camel group name.{quote} In practice, this will not work. Consider the following route set up in the DSL: {noformat} from("quartz://fax_followup?cron=0+0/10+9-20+?+*+MON-SAT") .bean(Foo.class, "faxFollowup"); {noformat} Camel stactktraces thusly: {noformat} org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route47: Route[[From[quartz://fax_followup?cron=0+0/10+9-20+?... because of Failed to resolve endpoint: quartz://fax_followup?cron=0+0%2F10+9-20+%3F+*+MON-SAT due to: Trigger name cannot be null or empty. at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1039) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:562) at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736) at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route47: Route[[From[quartz://fax_followup?cron=0+0/10+9-20+?... because of Failed to resolve endpoint: quartz://fax_followup?cron=0+0%2F10+9-20+%3F+*+MON-SAT due to: Trigger name cannot be null or empty. at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:141) at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:601) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1156) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1073) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1009) at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:158) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:55) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:884) at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:197) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101) ... 12 more {noformat} This will work, however, if you provide a group name in the URI (e.g. use "quartz://groupName/triggerName?cron=..." version). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.