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

Catch throwables and not only Exceptions in BaseLifeCycle.onMessageExchange

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2013.02
    • servicemix-common
    • 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

              Unassigned Unassigned
              gboccalon Gianfranco Boccalon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: