git.net

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

DirectConsumerNotAvailableException: No consumers available on endpoint


After upgrading from 2.18 to 2.19.5, I'm often seeing this exception at startup.
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?

org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: direct://myRoute. Exchange[ID-mypc-27743-1524756340687-3-2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:55)
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198)
    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
    at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:529)
    at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:497)
    at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:365)
    at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:497)
    at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:225)
    at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:144)
    at org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeaders(DefaultProducerTemplate.java:257)


Thanks

- Martin