ISSUE

It is not allowed to map a same remote class alias more than once. 

Sample

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
        <![CDATA[
            import com.adobe.A;
            import com.adobe.B;
.....
package com.adobe
{
    [Bindable]
    [RemoteClass(alias="com.adobe.A")]
    
    public class A
    {
            .....
    }
        .....
}
package com.adobe
{
    [Bindable]
    [RemoteClass(alias="com.adobe.A")]
    
    public class B
    {
            .....
    }
        .....
}

The following error message would be the result for the example above.

[RPC Fault faultString="Cannot invoke method 'xxxxx'." 
faultCode="Server.ResourceUnavailable" 
faultDetail="The expected argument types are (com.adobe.A) 
but the supplied types were (flex.messaging.io.amf.ASObject) and converted to (null)."]

Flash Player 10.0.42.34 has been updated to catch this. With the prior versions of Flash Player are not capable of catching this issue.

SOLUTION

Make sure not to map more than one class to the same alias.

ADDITIONAL INFORMATION

Flex SDK 3.3 has been updated to check this at the compile time.  If it is mapped more than once, the following error message would be displayed.  Please take a look at this link for more details on this compiler update.

A mapping for 'xxxxx' to the remote class alias 'xxxxx' 
was found while processing class 'xxxxx'. Flex now generates code 
to check if an alias has already been registered. 
When deserializing remote data an alias can only map to a single class.

[日本語: cpsid_82860]

本作品は Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License によってライセンス許可を受けています。  Twitter™ および Facebook の投稿には、Creative Commons の規約内容は適用されません。

法律上の注意   |   プライバシーポリシー