Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-169

Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2013.02
    • Component/s: servicemix-common
    • Labels:
      None

      Description

      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 ?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gboccalon Gianfranco Boccalon
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: