Hi,

maybe the predicat body().isNull() is never true. Then nothing would happen.. you can try this also with a content based route

.choice
    .when(body().isNull())
        .log("body is nulll")
    .otherwise()
        .log("body is ${body})

remember that for example an empty string "" is not null.

regards, Marco


Am 27.03.2013 12:47, schrieb scottj:
I have the following route

from("activemq:incoming")
.errorHandler(defaultErrorHandler().log("boo").maximumRedeliveries(3).useOriginalMessage().retryAttemptedLogLevel(LoggingLevel.WARN))
.log("foo")
.filter(body().isNull()).setFaultBody(constant("fault happened"))
.log("bar")
.process(storageProcessor)
.end();

it just prints "foo" and nothing more. Shouldn't the error handler kick in?




--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-doesn-t-this-ErrorHandler-work-tp5729927.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Reply via email to