You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by spayasam <Sh...@gmail.com> on 2011/12/21 16:05:29 UTC
Error Sequences not invoked
Hi All
I'm trying to run a simple error handler like this
<sequence name="run_ws" onError="WSFaultHanlder">
<callout ..>
...
</callout>
</sequence>
<sequence name="WSFaultHandler">
handle errors here ..send email using mailto
</sequence>
When the callout fails with any error(transport error/soap fault) , the
WSFaultHandler is not getting invoked at all.
I can see that the error is thrown in the synapse log. Am I doing something
wrong?
Thanks
Shravan
--
View this message in context: http://old.nabble.com/Error-Sequences-not-invoked-tp33017415p33017415.html
Sent from the Synapse - User mailing list archive at Nabble.com.
Re: Error Sequences not invoked
Posted by Paul Fremantle <pz...@gmail.com>.
There is a difference between a transport error and a SOAP Fault (or
at least that's how its meant to be :-) - there may be a bug too). A
SOAP Fault is not an error within Synapse and you need to detect it
using a XPath. Its possible there is a bug in callout here though. Do
you get the same issue if you try a send to the endpoint instead of
using callout?
Paul
On Wed, Dec 21, 2011 at 3:05 PM, spayasam <Sh...@gmail.com> wrote:
>
> Hi All
>
> I'm trying to run a simple error handler like this
>
> <sequence name="run_ws" onError="WSFaultHanlder">
> <callout ..>
> ...
> </callout>
> </sequence>
>
> <sequence name="WSFaultHandler">
> handle errors here ..send email using mailto
> </sequence>
>
> When the callout fails with any error(transport error/soap fault) , the
> WSFaultHandler is not getting invoked at all.
> I can see that the error is thrown in the synapse log. Am I doing something
> wrong?
>
> Thanks
> Shravan
> --
> View this message in context: http://old.nabble.com/Error-Sequences-not-invoked-tp33017415p33017415.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>
--
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
Re: Error Sequences not invoked
Posted by Sadeep Jayasumana <ga...@gmail.com>.
Hi,
On Tue, Dec 27, 2011 at 4:24 AM, spayasam <Sh...@gmail.com> wrote:
>
> I had to switch to using <pojoCommand> and handle errors from a pojo class
> because Synapse wasn't executing the error sequences.
> I've double checked the documentation and couldn't find anything wrong in
> my
> configuration.
> Any ideas?
>
>
> spayasam wrote:
> >
> > Hi
> >
> > Any ideas? No one?
> >
> > Thanks
> > Shravan
> >
> > spayasam wrote:
> >>
> >> Hi All
> >>
> >> I'm trying to run a simple error handler like this
> >>
> >> <sequence name="run_ws" onError="WSFaultHanlder">
> >> <callout ..>
> >> ...
> >> </callout>
> >> </sequence>
> >>
> >> <sequence name="WSFaultHandler">
> >> handle errors here ..send email using mailto
> >> </sequence>
> >>
> >> When the callout fails with any error(transport error/soap fault) , the
> >> WSFaultHandler is not getting invoked at all.
> >> I can see that the error is thrown in the synapse log. Am I doing
> >> something wrong?
>
Could you please post the log here? DEBUG logs will be more useful. [1]
contains instructions on how to enable DEBUG logs in Synapse.
[1] http://synapse.apache.org/Synapse_Samples_Setup.html
Thanks,
Sadeep
>>
> >> Thanks
> >> Shravan
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Error-Sequences-not-invoked-tp33017415p33039586.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>
>
--
Sadeep Jayasumana****
Email: gayansadeep@gmail.com****
Phone: +94-77-2266507
Re: Error Sequences not invoked
Posted by spayasam <Sh...@gmail.com>.
I had to switch to using <pojoCommand> and handle errors from a pojo class
because Synapse wasn't executing the error sequences.
I've double checked the documentation and couldn't find anything wrong in my
configuration.
Any ideas?
spayasam wrote:
>
> Hi
>
> Any ideas? No one?
>
> Thanks
> Shravan
>
> spayasam wrote:
>>
>> Hi All
>>
>> I'm trying to run a simple error handler like this
>>
>> <sequence name="run_ws" onError="WSFaultHanlder">
>> <callout ..>
>> ...
>> </callout>
>> </sequence>
>>
>> <sequence name="WSFaultHandler">
>> handle errors here ..send email using mailto
>> </sequence>
>>
>> When the callout fails with any error(transport error/soap fault) , the
>> WSFaultHandler is not getting invoked at all.
>> I can see that the error is thrown in the synapse log. Am I doing
>> something wrong?
>>
>> Thanks
>> Shravan
>>
>
>
--
View this message in context: http://old.nabble.com/Error-Sequences-not-invoked-tp33017415p33039586.html
Sent from the Synapse - User mailing list archive at Nabble.com.
Re: Error Sequences not invoked
Posted by spayasam <Sh...@gmail.com>.
Hi
Any ideas? No one?
Thanks
Shravan
spayasam wrote:
>
> Hi All
>
> I'm trying to run a simple error handler like this
>
> <sequence name="run_ws" onError="WSFaultHanlder">
> <callout ..>
> ...
> </callout>
> </sequence>
>
> <sequence name="WSFaultHandler">
> handle errors here ..send email using mailto
> </sequence>
>
> When the callout fails with any error(transport error/soap fault) , the
> WSFaultHandler is not getting invoked at all.
> I can see that the error is thrown in the synapse log. Am I doing
> something wrong?
>
> Thanks
> Shravan
>
--
View this message in context: http://old.nabble.com/Error-Sequences-not-invoked-tp33017415p33030133.html
Sent from the Synapse - User mailing list archive at Nabble.com.