Hi,

On Thu, Oct 22, 2009 at 4:43 PM, J DeBord <[email protected]> wrote:
> There is an open issue that seems to address what you are experiencing.
> http://framework.zend.com/issues/browse/ZF-5118

No, I know about this issue but this is a difference case. Flex get
back this response (dump from Charsles):

8                   Method   /1/onStatus
  Parameters        String   YWRtaW46YWRtaW4=
  Results           flex.messaging.messages.ErrorMessage
    extendedData    Null
    faultCode       Integer -3
    faultDetail     String  <stack trace removed>
    faultString     String  Authentication failed: Invalid credentials
    rootCause       Null
    correlationId   String  380C8053-7211-CB4E-47AA-7E2C7406AE37
    clientId        String  24B86936-AD69-04E8-A3A4-00001500159A
    destination     Null
    messageId       String  0BDE86DF-E3D7-3209-620C-0000072277DC
    timestamp       String  125624729300
    timeToLive      Integer     0
    headers         Object
    body            Null

So, faultCode and faultString are there but why I can't get then with
following code?

private function faultHandler(fault:FaultEvent):void
{
               Alert.show("code:\n" + fault.fault.faultCode +
"\n\nMessage:\n" + fault.fault.faultString + "\n\nDetail:\n" +
fault.fault.faultDetail);
}

Class Zend_Amf_Server_Exception is sterilized as
flex.messaging.messages.ErrorMessage and maybe Flex doesn't understand
what -3 as faultCode means so it replaces with default one:
"Client.Error.MessageSend".

> Also, I do believe the PHP error log will record the errors.

There is nothing in PHP error_log (i'm using E_ALL)

Thanks,
-- 
Ondrej Ivanic
([email protected])

Reply via email to