[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: DirectConsumerNotAvailableException: No consumers available on endpoint

Thanks, the block option for the direct: component helped.

However, in general, there's a more apparent timing issue after the version upgrade.
If the CamelContext is not ready, then one cannot start routes.
I had to resort to registering a "StartupListener" to be notified, before trying to start routes.

On 26.04.2018 19:20, Alex Dettinger wrote:
You may be interested in routes startupOrder
or the block option
which you may need to set to true on your own in 2.19.5.

On Thu, Apr 26, 2018 at 6:24 PM, Martin Lichtin <lichtin@xxxxxxxxx.invalid>
After upgrading from 2.18 to 2.19.5, I'm often seeing this exception at
It looks like the auto-started route is not immediately ready?

Using a producer template, it can happen that
"DirectConsumerNotAvailableException" is thrown.
At next try (e.g. a second later) it works.
How can this be avoided? No
consumers available on endpoint: direct://myRoute.
     at org.apache.camel.processor.CamelInternalProcessor.process(Ca
     at org.apache.camel.processor.DelegateAsyncProcessor.process(De
     at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerC
     at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerC
     at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCac
     at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCac
     at org.apache.camel.impl.ProducerCache.send(
     at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultPr
     at org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHea


- Martin