You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Evanthika Amarasiri (JIRA)" <ji...@apache.org> on 2008/05/12 08:09:55 UTC
[jira] Closed: (SYNAPSE-85) If an error occurs inside a "switch"
mediator the error is not captured through the onError sequence specified
[ https://issues.apache.org/jira/browse/SYNAPSE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Evanthika Amarasiri closed SYNAPSE-85.
--------------------------------------
OnError sequence is called when a fault occurs. Tested on 1.2_QA_B1. The issue can be closed
> 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
> Assignee: Ruwan Linton
> Fix For: 1.0-RC1-B3
>
>
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org