You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/04/01 21:00:32 UTC
[jira] Commented: (CAMEL-410) Exception handling of the
ErrorHandlerSupport class
[ https://issues.apache.org/activemq/browse/CAMEL-410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41956#action_41956 ]
Claus Ibsen commented on CAMEL-410:
-----------------------------------
Dan do you have a snippet of your camel context cofiguration where you have the exceåtions configured.
I would like to create a unit test that tests this problem.
Looking at the ErrorHandlerSupport code it would use the first found Exception that isInstanceof so it could potentially find a less specific type exception that was not the best suited.
> Exception handling of the ErrorHandlerSupport class
> ---------------------------------------------------
>
> Key: CAMEL-410
> URL: https://issues.apache.org/activemq/browse/CAMEL-410
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.2.0, 1.3.0
> Reporter: Dan Dudley
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
> Attachments: patch.txt
>
>
> When you configure your route builder and say you want to configure two exceptions lets say: NullPointer and Exception.
> Now say the bean you call as your end point throws a NullPointer, wouldn't you think the NullPointer policy would handle that exception?
> Well I'm seeing sometimes it does and sometimes it doesn't due to the map not keeping the exceptions in any particular order. Is there anyway this could be changed to a LinkedHashMap or a List?
> Issue with class: org.apache.camel.processor.ErrorHandlerSupport
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.