If we consider authAndCall of BasicAuthenticationHandler at line 69, send() is called.

  if (parameter == null) {
*return /* implicit cast */ org.apache.royale.utils.Language.as(service.operations[operationName].send(), mx.rpc.AsyncToken, true);*
  }
  return /* implicit cast */ org.apache.royale.utils.Language.as(service.operations[operationName].send(parameter), mx.rpc.AsyncToken, true);

For here, the function being called is "mx.rpc.http.Operation.prototype.send()"

The suspendapp method of menubar :

            private function suspendApp(eventObj:CloseEvent):void {
                if(eventObj.detail == Alert.OK) {
                    suspendAppResult.token = BasicAuthenticationHandler.authAndCall(jobManagerService, "suspendapp");
                }
            }


I can share the sources for com.likya.pinara.utils.BasicAuthenticationHandler and com.likya.pinara.comps.MenuBar if you prefer.

Thanks,
Serkan


25.06.2020 20:14 tarihinde Alex Harui yazdı:

I have no idea where “parameters” came from and what it is.  Which method in the call stack created what is “parameters”?  Maybe suspendApp?  Or authAndCall?

I think we need to understand why Flex has null at some point but Royale doesn’t.

-Alex

*From: *"[email protected]" <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Thursday, June 25, 2020 at 9:51 AM
*To: *"[email protected]" <[email protected]>
*Subject: *Re: empty object is being behaved as if an xml

Which part you want to look Alex ?

Android için Outlook <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36&data=02%7C01%7Caharui%40adobe.com%7C9adde787224c40a2859c08d819280960%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637287007035345242&sdata=kXec8lJ%2Fa%2Bjs0PPAS1U0KGBuDId3pyboXFOxDvFKbvA%3D&reserved=0>'u edinin

------------------------------------------------------------------------

*From:*Alex Harui <[email protected]>
*Sent:* Thursday, June 25, 2020 7:47:13 PM
*To:* [email protected] <[email protected]>
*Subject:* Re: empty object is being behaved as if an xml

What does the code look like that calls this?

*From: *serkan <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Wednesday, June 24, 2020 at 11:53 PM
*To: *"[email protected]" <[email protected]>
*Subject: *empty object is being behaved as if an xml

Hi,

Regarding the exception :



When the "parameters" is null it is being behaved like an xml node by AbstractOperation with the code piece below :

            if (ctype == CONTENT_TYPE_XML)
            {

                if (parameters is String && xmlEncode == null)
                {
                    paramsToSend = parameters as String;
                } else {
                    paramsToSend = parameters.toXMLString();
                }

In fact Flex version checks if it is XMLNode or not than creates some kind of empty XML "<>"

How can I check if "parameters" is not an xml string and convert it to empty xml string ? Checking null is not working because it is not null in royale bu an empty Array, which is an object according to the code below :



Thanks,
Serkan


Reply via email to