camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Taylor <>
Subject Re: Camel ScheduledPollEndpoint class scheduler setup in SqlComponent
Date Sat, 04 Jun 2016 12:13:56 GMT
Hi. If that really is your xml it's because you're not escaping the &. You
have to use &amp; entity ref in the endpoint uri
On Jun 3, 2016 2:12 AM, "qwertywx" <> wrote:


I have created an endpoint like:

<camel:endpoint id="sqlEndpoint"

But when I do that, jvm throws:

org.apache.camel.FailedToCreateConsumerException: Failed to create Consumer
for endpoint: Endpoint[sql://$select * from
Reason: There are 1 scheduler parameters that couldn't be set on the
endpoint. Check the uri if the parameters are spelt correctly and that they
are properties of the endpoint. Unknown parameters=[{cron=0 6 8 * *}]

I have read documents and inspected source code about it, debugged it. As
far as I have seen,
Object>, Map<String, Object>) method is running before
org.apache.camel.impl.ScheduledPollEndpoint.setScheduler(String) .

So the first method always try to initialize scheduler as default camel

Am I missing something or is this really a bug?

It still gives exception. The only case that it initialize scheduler
correctly is , when I create a spring bean and give it like


View this message in context:
Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message