You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2011/02/06 10:51:32 UTC
[jira] Updated: (SMXCOMP-169) Catch throwables and not only
Exceptions in BaseLifeCycle.onMessageExchange
[ https://issues.apache.org/jira/browse/SMXCOMP-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated SMXCOMP-169:
-----------------------------------------
Fix Version/s: (was: 2011.01)
2011.02
> Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange
> ---------------------------------------------------------------------------
>
> Key: SMXCOMP-169
> URL: https://issues.apache.org/jira/browse/SMXCOMP-169
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-common
> Reporter: Gianfranco Boccalon
> Fix For: 2011.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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira