[ https://issues.apache.org/activemq/browse/CAMEL-2707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Parkerson closed CAMEL-2707. ---------------------------------- Fix Version/s: 2.3.0 Resolution: Cannot Reproduce Cannot reproduce in the latest trunk code. Closing. > 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 > Fix For: 2.3.0 > > > 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.