Unfortunately that runs into another problem I'm having. When I put a fault handler on the RemoteObject or Operation, it gets called but the token property of the FaultEvent is null. Hmmm??? So I can't access the token associated with the call. Any idea why that's happening? According to the docs on AsyncToken, it's supposed to be attached to FaultEvents.
Thanks. Michael On Thu, 10 May 2007, Tracy Spratt wrote: > I am just suggesting that you simplify the conditions by not using a > responder function. Instead, just put a string in the AsyncToken, and > use a hard coded fault handler. > > > > Tracy > > > > ________________________________ > >> From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Michael Allman > Sent: Thursday, May 10, 2007 4:47 PM > To: [email protected] > Subject: [flexcoders] Re: rpc fault handler not called > > > > I did not receive my message, so I'm responding to my original post. > > This is actually in response to Tracy Spratt's message. > > What is the ACT token? And the responder's fault handler is simply not > called. I've debugged it to no avail. I need to see the source to > mx.rpc stuff in order to understand what's going on. Unfortunately, that > > appears to be under wraps. > > Thanks for your help. > > Michael > > On Thu, 10 May 2007, Michael Allman wrote: > >> 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 >> > > > >

