[jira] Created: (CAMEL-297) tryCatch() doesn't propagate results from handle() section

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-297) tryCatch() doesn't propagate results from handle() section

JIRA jira@apache.org
tryCatch() doesn't propagate results from handle() section
----------------------------------------------------------

                 Key: CAMEL-297
                 URL: https://issues.apache.org/activemq/browse/CAMEL-297
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 1.3.0
            Reporter: Roman Kalukiewicz


in following flow
{code}
from("direct:a")
.setBody(constant("body"))
.tryBlock()
.process(new ExceptionThrower())
.handle(Exception.class)
.setBody(constant("exception"));
{code}

the result of such invocation is "body" instead of "exception".

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-297) tryCatch() doesn't propagate results from handle() section

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roman Kalukiewicz updated CAMEL-297:
------------------------------------

    Attachment: tryCatch.patch

Patch for this issue attached.

(and for one simple typo in comment ;) )

> tryCatch() doesn't propagate results from handle() section
> ----------------------------------------------------------
>
>                 Key: CAMEL-297
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-297
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Roman Kalukiewicz
>         Attachments: tryCatch.patch
>
>
> in following flow
> {code}
> from("direct:a")
> .setBody(constant("body"))
> .tryBlock()
> .process(new ExceptionThrower())
> .handle(Exception.class)
> .setBody(constant("exception"));
> {code}
> the result of such invocation is "body" instead of "exception".

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (CAMEL-297) tryCatch() doesn't propagate results from handle() section

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roman Kalukiewicz reassigned CAMEL-297:
---------------------------------------

    Assignee: Roman Kalukiewicz

> tryCatch() doesn't propagate results from handle() section
> ----------------------------------------------------------
>
>                 Key: CAMEL-297
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-297
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Roman Kalukiewicz
>            Assignee: Roman Kalukiewicz
>         Attachments: tryCatch.patch
>
>
> in following flow
> {code}
> from("direct:a")
> .setBody(constant("body"))
> .tryBlock()
> .process(new ExceptionThrower())
> .handle(Exception.class)
> .setBody(constant("exception"));
> {code}
> the result of such invocation is "body" instead of "exception".

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-297) tryCatch() doesn't propagate results from handle() section

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roman Kalukiewicz resolved CAMEL-297.
-------------------------------------

    Resolution: Fixed

Patch applied. But patch attached to this issue covers this issue and newly created CAMEL-309

> tryCatch() doesn't propagate results from handle() section
> ----------------------------------------------------------
>
>                 Key: CAMEL-297
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-297
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Roman Kalukiewicz
>            Assignee: Roman Kalukiewicz
>         Attachments: tryCatch.patch
>
>
> in following flow
> {code}
> from("direct:a")
> .setBody(constant("body"))
> .tryBlock()
> .process(new ExceptionThrower())
> .handle(Exception.class)
> .setBody(constant("exception"));
> {code}
> the result of such invocation is "body" instead of "exception".

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-297) tryCatch() doesn't propagate results from handle() section

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Strachan updated CAMEL-297:
---------------------------------

    Fix Version/s: 1.3.0

> tryCatch() doesn't propagate results from handle() section
> ----------------------------------------------------------
>
>                 Key: CAMEL-297
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-297
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Roman Kalukiewicz
>            Assignee: Roman Kalukiewicz
>             Fix For: 1.3.0
>
>         Attachments: tryCatch.patch
>
>
> in following flow
> {code}
> from("direct:a")
> .setBody(constant("body"))
> .tryBlock()
> .process(new ExceptionThrower())
> .handle(Exception.class)
> .setBody(constant("exception"));
> {code}
> the result of such invocation is "body" instead of "exception".

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.