You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ashish Gidh (Jira)" <ji...@apache.org> on 2022/07/27 12:54:00 UTC

[jira] [Commented] (CAMEL-18312) DoTry and DoCatch block does not work in YAML DSL

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

Ashish Gidh commented on CAMEL-18312:
-------------------------------------

Oh thanks. Please let us know or any help will be appreciated. 

> DoTry and DoCatch block does not work in YAML DSL 
> --------------------------------------------------
>
>                 Key: CAMEL-18312
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18312
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 3.17.0
>         Environment:       <camel.version>3.17.0</camel.version>
>       <quarkus.platform.version>2.10.1.Final</quarkus.platform.version>
>  
>            Reporter: Ashish Gidh
>            Priority: Major
>
> The DoTry and DoCatch block does not work and this is an important feature for us to catch errors and process. 
>  Is there an existing example which works ? Not sure if the syntax is missing anything but its not working as per specs. 
> Any working example or logic will help analyze. This may relate to the same issue as below. 
>     [https://github.com/apache/camel-karavan/issues/401]
> Example Snippet which does not work under Quarkus and Spring Boot is as follows. We are using Karavan for citizen development. 
>                 - doTry:
>                     steps:
>                       - to:
>                           uri: rest:post:example:startProcess
>                           parameters:
>                             host: localhost:8081
>                             bindingMode: auto
>                             producerComponentName: http
>                     doCatch:
>                       - steps:
>                           - log:
>                               message: Exception while calling the process \n${body}
>                               loggingLevel: ERROR
>                         exception:
>                           - java.lang.Exception.class
>                           - Exception.class
>  
> Please  help. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)