You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rhowlett <rh...@silverchalice.com> on 2011/12/08 19:56:10 UTC

ignoreInvalidEndpoints does not ignore CamelExchangeException

org.apache.camel.processor.RecipientListIgnoreInvalidEndpointsTest in
camel-core does not pass if instead of using a non-existent
component/endpoint like "fail:endpoint", a valid component is used but the
endpoint does not exist e.g. "direct:endpoint".

A "org.apache.camel.CamelExchangeException: No consumers available on
endpoint: Endpoint[direct://endpoint]. Exchange[Message: Hello World]"
Exception is thrown and not ignored.

Issue created: https://issues.apache.org/jira/browse/CAMEL-4755

--
View this message in context: http://camel.465427.n5.nabble.com/ignoreInvalidEndpoints-does-not-ignore-CamelExchangeException-tp5059762p5059762.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ignoreInvalidEndpoints does not ignore CamelExchangeException

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Thanks for reporting. Although that example is actually working as designed.
The direct component (the direct producer) will at runtime throw an
exception if there is no consumer available.

The ignore invalid exception option, is to ignore endpoint uris, which
is invalid, due to typo's, non existing component etc.


On Thu, Dec 8, 2011 at 7:56 PM, rhowlett <rh...@silverchalice.com> wrote:
> org.apache.camel.processor.RecipientListIgnoreInvalidEndpointsTest in
> camel-core does not pass if instead of using a non-existent
> component/endpoint like "fail:endpoint", a valid component is used but the
> endpoint does not exist e.g. "direct:endpoint".
>
> A "org.apache.camel.CamelExchangeException: No consumers available on
> endpoint: Endpoint[direct://endpoint]. Exchange[Message: Hello World]"
> Exception is thrown and not ignored.
>
> Issue created: https://issues.apache.org/jira/browse/CAMEL-4755
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/ignoreInvalidEndpoints-does-not-ignore-CamelExchangeException-tp5059762p5059762.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/