camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: REST DSL Exception Handling
Date Fri, 12 Dec 2014 10:58:28 GMT

Where does this exception happen?

You can try setting consumer.bridgeErrorHandler=true

You would need to set this with rest-dsl as a consumer property


On Thu, Dec 11, 2014 at 10:19 PM, restful camel <> wrote:
> Hi,
> Newbie to Camel. I want to handle a specific exception (JsonParseException)
> which is thrown when the Rest webservice configured in the camelContext
> (Spring DSL) is invoked. Right now, the JsonParseException is being caught
> by the Camel Context Error handler - however, I want to be able to write a
> specific onException block that will handle this exception and send back
> appropriate response to the user. How can I achieve this? I tried writing an
> onException block in the camelContext to handle this, but apparently the
> thrown exception is not being handled within that block.
> Thanks!
> Restful Camel :)
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message