[switchyard-issues] [JBoss JIRA] Created: (SWITCHYARD-266) ExchangeImpl is swallowing exception info for unhandled faults

Keith Babo (JIRA) jira-events at lists.jboss.org
Tue Jun 7 23:09:59 EDT 2011


ExchangeImpl is swallowing exception info for unhandled faults
--------------------------------------------------------------

                 Key: SWITCHYARD-266
                 URL: https://issues.jboss.org/browse/SWITCHYARD-266
             Project: SwitchYard
          Issue Type: Bug
          Components: core
    Affects Versions: 0.1
            Reporter: Keith Babo


The following code in ExchangeImpl results in the fault details getting swallowed since DefaultMessage.toString() will not print the content of the message:

{noformat}
        // if a fault was thrown by the handler chain and there's no reply chain
        // we need to log.
        // TODO : stick this in a central fault/error queue
        if (ExchangeState.FAULT.equals(_state) && _replyChain == null) {
            _log.warn("Fault generated during exchange without a handler: " + _message);
            return;
        }
{noformat}

Here's what it looks like in the log:
{noformat}
22:49:52,382 ERROR [org.switchyard.internal.DefaultHandlerChain] (Camel (camel-8) thread #6 - file:///tmp/input) org.switchyard.component.bean.BeanComponentException: Invocation of operation 'sayHello' on bean component 'org.example.test1.TestServiceBean' failed with exception.  See attached cause.
22:49:52,384 WARN  [org.switchyard.internal.ExchangeImpl] (Camel (camel-8) thread #6 - file:///tmp/input) Fault generated during exchange without a handler: org.switchyard.internal.DefaultMessage at 64fe7a67
{noformat}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the switchyard-issues mailing list