TimeoutHandler should look for FaultHandler instance, not MediatorFaultHander
-----------------------------------------------------------------------------
Key: SYNAPSE-163
URL: https://issues.apache.org/jira/browse/SYNAPSE-163
Project: Synapse
Issue Type: Bug
Components: Core
Affects Versions: 1.0
Reporter: Maciej Majewski
TimeoutHandler checks if object pushed into faultStack is MediatorFaultHandler.
for (int j = 0; j < faultStack.size(); j++) {
Object o = faultStack.pop();
if (o instanceof MediatorFaultHandler) {
((MediatorFaultHandler) o).handleFault(msgContext);
}
}
When we use timeouts in WSDLEndpoint, it pushes its instance to stack:
synCtx.pushFaultHandler(this);
WSDLEndpoint extends FaultHandler, not MediatorFaultHandler so TimeoutHandler
can't delegate fault handling to WSDLEndpoint.
What's more:
if (o instanceof MediatorFaultHandler) {
((MediatorFaultHandler) o).handleFault(msgContext);
}
handleFault method is defined in FaultHandler class, so i think TimeoutHandler
should look for FaultHandler instance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]