[
https://issues.apache.org/jira/browse/SYNAPSE-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ruwan Linton resolved SYNAPSE-163.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.1.-RC1-B1
Assignee: Ruwan Linton
Thanks for pointing this. You are correct on the argument.
I have fixed the issue in the trunk.
> 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
> Assignee: Ruwan Linton
> Fix For: 1.1.-RC1-B1
>
>
> 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]