RE: [flexcoders] rpc fault handler not called

2007-05-17 Thread Peter Farland
Right, can you try instead to use the normal RemoteObject or Operation
level result event handler mechanism first to see if that works?
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, May 10, 2007 2:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] rpc fault handler not called



Is the problem with the responder?  If you just pass a string in the ACT
token, do you still get the error?

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Allman
Sent: Thursday, May 10, 2007 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] rpc fault handler not called

Hi,

Can anyone tell me how to get Flex to call a fault handler associated
with
an rpc call? This is the pattern I'm using:

var token:AsyncToken = operation.send();
token.addResponder(responder);

However, my responder's fault method is never called. Instead I get an
error message from flash player with a strack trace that looks like

mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
tHan http://www.adobe.com/2006/flex/mx/internal::faultHan 
dler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at
::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnection
Mess
ageResponder::statusHandler()
at mx.messaging::MessageResponder/status()

whenever I receive a fault.

Thanks a bunch!

Michael

 


RE: [flexcoders] rpc fault handler not called

2007-05-10 Thread Tracy Spratt
Is the problem with the responder?  If you just pass a string in the ACT
token, do you still get the error?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Allman
Sent: Thursday, May 10, 2007 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] rpc fault handler not called

 

Hi,

Can anyone tell me how to get Flex to call a fault handler associated
with
an rpc call? This is the pattern I'm using:

var token:AsyncToken = operation.send();
token.addResponder(responder);

However, my responder's fault method is never called. Instead I get an
error message from flash player with a strack trace that looks like

mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
tHan http://www.adobe.com/2006/flex/mx/internal::faultHan 
dler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at
::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnection
Mess
ageResponder::statusHandler()
at mx.messaging::MessageResponder/status()

whenever I receive a fault.

Thanks a bunch!

Michael