Hi All,

i just trying my self out with the Quartz2 Component of Camel.

I want a route triggering an Exchange by a CRON-Expression (e.g. 0 0/5 * * *
?)

My Source to generate the endpoint for my route looks like:

-----------
// get cron expression
String cron = cron(); // gives back the String "0 0/5 * * * ?"

// replace space with "+" sign (URI syntax)
cron = cron.replace(" ", "+");

Endpoint start = endpoint(QUARTZ2 + timerName() + "?cron=" + cron);
// uri = quartz2://updateTrigger?cron=0+0/5+*+*+*+?

from(start)...
---------

Trying to start my app (using Spring Boot) runs into the following exception
while loading:

Camel App crashed, Reason: Error creating bean with name 'camelContext'
defined in class com.din.xscore.imp.config.CamelConfig: Bean instantiation
via factory method failed; nested exceptio
n is org.springframework.beans.BeanInstantiationException: Failed to
instantiate [org.apache.camel.CamelContext]: Factory method 'camelContext'
threw exception; nested exception is
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
qua
rtz2://updateTrigger?cron=0+0%2F5+*+*+*+%3F due to: null

Whats wrong here?
Any help would be nice.

P.S: Without the call to endpoint() all works fine!

P.P.S: If this is a Bug than i can do a ticket on this...

Best regards Hubertus



--
View this message in context: 
http://camel.465427.n5.nabble.com/Quartz2-Endpoint-Exception-tp5780221.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to