If an error occurs inside a "switch" mediator the error is not captured through 
the onError sequence specified
--------------------------------------------------------------------------------------------------------------

                 Key: SYNAPSE-85
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-85
             Project: Synapse
          Issue Type: Bug
    Affects Versions: 1.0-RC1-B2
         Environment: Windows XP, JDK 1.4.2_13
            Reporter: Evanthika Amarasiri


When an error is occurred in a switch mediator, the error is not returned 
properly through an onError sequence defined. Below is the configuration used.

<definitions xmlns="http://ws.apache.org/ns/synapse";>
<endpoint name="division_epr">
    <address uri="http://localhost:9001/axis2/services/Division";>
        <enableAddressing/>
    </address>
</endpoint>

<localEntry key="div_request"  
src="file:repository/conf/sample/resources/transform/div_request.xslt" />

<sequence name="fault">
    <log level="full" separator=",">
        <property name="Error_prop" value="Error Occurred"/>
    </log>
</sequence>
<sequence name="main" onError="fault">
<in>
    <send>
        <endpoint>
            <address uri="http://localhost:9001/axis2/services/Division"/>
        </endpoint>
    </send>
</in>
<out>
    <switch xmlns:ns1="http://div.math.com/xsd"; source="//ns1:return">
        <case regex="2">
            <xslt key="div_request"/>
        </case>
        <case regex="3">
            <send>
                <endpoint>
                     <address  
uri="http://localhost:9001/axis2/services/Subtraction"/>
                </endpoint>
            </send>
        </case>
           <default>
            <log level="full" separator=",">
                <property name="default_property" value="Inside Default Case"/>
            </log>    
           </default>
    </switch>
    <send/>
</out>
</sequence>
</definitions>

An error occurs in the "div_request.xslt " therefore when the sequence 
executes, and when the error occurs it should call the onError sequence

-- 
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]

Reply via email to