Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-991

Declared exception on Java bean service interface is being returned as a BeanComponentException

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When a service bean throws a declared exception, it is being returned as an InvocationTargetException, its stack printed and then wrapped/thrown in a BeanComponentException.

      This BeanComponentException is then returned as the message content for the exchange, rather than the defined exception.

      This means that a defined transformer, from the defined exception type, is not being picked up.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                objectiser Gary Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: