camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a746076drdrb <>
Subject wiretap in otherwise does not work
Date Thu, 08 May 2014 08:49:52 GMT

I'm getting Exception: 

in thread "main" org.apache.camel.RuntimeCamelException:
java.lang.ClassCastException: org.apache.camel.model.OtherwiseDefinition
cannot be cast to org.apache.camel.model.ChoiceDefinition

when using wireTap in otherwise(). I've tried to use end() and endChoice()
but it doesn't help. Is it possible to use wiretap definition in otherwise

                    .newExchangeBody(constant("in wiretap"))
                .setBody(constant("after wiretapping"))

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

View raw message