camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Endpoint configuration error
Date Thu, 28 Feb 2013 15:12:51 GMT
On Thu, Feb 28, 2013 at 9:53 AM, Richa <> wrote:
> Thank you for your reply claus.
> I am using camel 2.10.2.
> It's a normal java function. The function returns the JmsEndpoint which I
> later use in my route. But even though I put try catch block, I get this
> exception thrown out. Apparently the code does not go to the catch block.
> Currently my catch block is:
> catch(Exception e)
> {
>   System.out.println("Error");
> }
> But even if I put JMSException or ConnectException I get an error in my code
> that the catch block is unreachable. Please help me in solving this issue.

I guess the exception is thrown from somewhere else.

Maybe later if you use the endpoint to create a consumer, and that
fails, or when starting the consumer.

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

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message