synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (SYNAPSE-85) If an error occurs inside a "switch" mediator the error is not captured through the onError sequence specified
Date Tue, 27 Mar 2007 18:15:32 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Asankha C. Perera reassigned SYNAPSE-85:
----------------------------------------

    Assignee: Ruwan Linton

Ruwan can you look into this one?

> 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
>         Assigned To: Ruwan Linton
>
> 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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message