You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gianfranco Boccalon (JIRA)" <ji...@apache.org> on 2008/04/09 16:03:32 UTC
[jira] Created: (SM-1310) ProviderEndpoint support for errors
ProviderEndpoint support for errors
-----------------------------------
Key: SM-1310
URL: https://issues.apache.org/activemq/browse/SM-1310
Project: ServiceMix
Issue Type: Bug
Components: servicemix-common
Affects Versions: 3.1.2
Reporter: Gianfranco Boccalon
When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
In these cases no messages are sent over the NMR.
If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-169) Catch throwables and not only
Exceptions in BaseLifeCycle.onMessageExchange
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated SMXCOMP-169:
-----------------------------------------
Fix Version/s: (was: servicemix-shared-2010.01)
servicemix-shared-2010.02
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SMXCOMP-169
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-169
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-common
> Reporter: Gianfranco Boccalon
> Fix For: servicemix-shared-2010.02
>
>
> When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
> In these cases no messages are sent over the NMR.
> If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
> It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SM-1310) Catch throwables and not only Exceptions
in BaseLifeCycle.onMessageExchange
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated SM-1310:
--------------------------------
Summary: Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange (was: ProviderEndpoint support for errors)
Fix Version/s: 3.2.2
3.3
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SM-1310
> URL: https://issues.apache.org/activemq/browse/SM-1310
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-common
> Affects Versions: 3.1.2
> Reporter: Gianfranco Boccalon
> Fix For: 3.2.2, 3.3
>
>
> When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
> In these cases no messages are sent over the NMR.
> If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
> It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-169) Catch throwables and not only
Exceptions in BaseLifeCycle.onMessageExchange
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen updated SMXCOMP-169:
------------------------------------
Fix Version/s: (was: servicemix-shared-2009.02)
servicemix-shared-2010.01
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SMXCOMP-169
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-169
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-common
> Reporter: Gianfranco Boccalon
> Fix For: servicemix-shared-2010.01
>
>
> When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
> In these cases no messages are sent over the NMR.
> If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
> It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-169) Catch throwables and not only
Exceptions in BaseLifeCycle.onMessageExchange
Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Heinemann updated SMXCOMP-169:
-----------------------------------
Fix Version/s: (was: servicemix-shared-2009.01)
servicemix-shared-2009.02
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SMXCOMP-169
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-169
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-common
> Reporter: Gianfranco Boccalon
> Fix For: servicemix-shared-2009.02
>
>
> When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
> In these cases no messages are sent over the NMR.
> If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
> It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SM-1310) Catch throwables and not only Exceptions
in BaseLifeCycle.onMessageExchange
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang updated SM-1310:
-----------------------------
Fix Version/s: 3.2.3
(was: 3.2.2)
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SM-1310
> URL: https://issues.apache.org/activemq/browse/SM-1310
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-common
> Affects Versions: 3.1.2
> Reporter: Gianfranco Boccalon
> Fix For: 3.2.3, 3.3
>
>
> When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
> In these cases no messages are sent over the NMR.
> If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
> It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SM-1310) Catch throwables and not only
Exceptions in BaseLifeCycle.onMessageExchange
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42582#action_42582 ]
Guillaume Nodet commented on SM-1310:
-------------------------------------
I have a doubt here: you say you throw a fault which is a throwable, but not an exception ? Usually, this would mean it inherits from Error instead of Exception.
I'm not sure if this is a good idea to catch Errors like OOM or such....
Can you provide a bit more details on your use case ?
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SM-1310
> URL: https://issues.apache.org/activemq/browse/SM-1310
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-common
> Affects Versions: 3.1.2
> Reporter: Gianfranco Boccalon
> Fix For: 3.2.3, 3.3
>
>
> When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
> In these cases no messages are sent over the NMR.
> If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
> It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SM-1310) Catch throwables and not only Exceptions
in BaseLifeCycle.onMessageExchange
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang updated SM-1310:
-----------------------------
Fix Version/s: 3.3.1
3.4
(was: 3.3)
(was: 3.2.3)
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SM-1310
> URL: https://issues.apache.org/activemq/browse/SM-1310
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-common
> Affects Versions: 3.1.2
> Reporter: Gianfranco Boccalon
> Fix For: 3.3.1, 3.4
>
>
> When extending the ProviderEndPoint class, if the code throws a Throwable (not an Exception), the method BaseLifeCycle.onMessageExchange doesn't catch the exception because it catches only Exceptions.
> In these cases no messages are sent over the NMR.
> If I surround my code with a try/catch, it doesnt work also, because I send a fault message and the ProviderEndPoint tries to send the normal message.
> It's possible to change the catch block in BaseLifeCycle.onMessageExchange to manage also Throwables ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.