You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2007/03/27 20:15:32 UTC

[jira] Assigned: (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 ]

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


Re: [jira] Assigned: (SYNAPSE-85) If an error occurs inside a "switch" mediator the error is not captured through the onError sequence specified

Posted by Ruwan Linton <ru...@gmail.com>.
Of course....

Ruwan.

On 3/27/07, Asankha C. Perera (JIRA) <ji...@apache.org> wrote:
>
>
>      [
> 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
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"