You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Naresh Khalasi (JIRA)" <ji...@apache.org> on 2018/03/16 20:17:00 UTC

[jira] [Commented] (CAMEL-12359) withAdvice() + weaveById() failing for global onException() route definitions

    [ https://issues.apache.org/jira/browse/CAMEL-12359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16402442#comment-16402442 ] 

Naresh Khalasi commented on CAMEL-12359:
----------------------------------------

https://github.com/apache/camel/commit/f3f0c70e97c35f4734569303535b423403d186e0#diff-eeb47c7593aa57d32b6071108ee43a51

> withAdvice() + weaveById() failing for global onException() route definitions
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-12359
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12359
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.19.4, 2.20.0, 2.20.1, 2.20.2, 2.21.0
>            Reporter: Naresh Khalasi
>            Priority: Major
>         Attachments: camel-kotlin-demo.zip
>
>
> weaveById() when invoked in the context of withAdvise() for global routes defined for generic exception handling.
> Attached is a demo code containing a single test case. It works upto 2.19.3 release and then fails with the error given below.
> To reproduce the error, update the came version in build.gradle to 2.19.4 and higher.
>  
> {{java.lang.IllegalArgumentException: There are no outputs which matches: handle-http-host-connect-exception in the route: Route[[From[direct:dummy]] -> [OnException[[class org.apache.http.conn.HttpHostConnectException] -> [process[Processor@0x51cb5d8d], To[log://camelLogger?level=INFO&showHeaders=true]]], OnException[[class org.apache.camel.http.common.HttpOperationFailedException] -> [process[Processor@0x7dbfd5a2], To[log://camelLogger?level=INFO&showHeaders=true]]], OnException[[class java.lang.Throwable] -> [process[Processor@0x4b675ceb], To[log://camelLogger?level=INFO&showHeaders=true]]], process[Processor@0x6eb9ac40], To[mock:dummy-route-end]]] at org.apache.camel.builder.AdviceWithTasks$2.task(AdviceWithTasks.java:244) at org.apache.camel.model.RouteDefinition.adviceWith(RouteDefinition.java:288) at com.vayana.vnet.cameldemo.base.CamelDemoRoutesTestSupport.setUp(base.kt:12)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)