Issue Type: Bug Bug
Affects Versions: 1.1
Assignee: Unassigned
Components: component-bean
Created: 11/Dec/13 8:17 PM
Description:

The invoke() method in ExchangeInvocation treats all fault messages as though they do not contain exceptions due to some faulty logic:

          if (_replyHandler.isFault()) {
            Object error = _replyHandler.getExchange().getMessage();

            // Handling case where fault content is not an exception
            if (!Throwable.class.isAssignableFrom(error.getClass())) {
                throw createException(_replyHandler.getExchange());
            }

Note how the return from getMessage() is assigned to the error var instead of getMessage().getContent(). This means all exceptions are converted to Strings. Good news is that no error content is lost since the conversion to String includes the entire exception hierarchy. Bad news is that if you are hunting for the actual Exception reference in code that uses ExchangeInvocation, you'll be disappointed.

Fix Versions: 2.0
Project: SwitchYard
Priority: Major Major
Reporter: Keith Babo
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira