flex rpc 错误整理
一、Flex Remoting
- Channel definition, mx.messaging.channels.RTMPChannel, can not be found...:最新版的Fluorined在services-config.xml中新增了RTMP Channel,主要是用来配置Flex Messaging,编译时需要FDS.swc支持,当然如果不需要此功能可以注释掉channel-definition这个节点。
- RPC Fault faultString="The requested type ... is not accessible":Flash Remoting服务名不对
- RPC Fault faultString="Could not find a suitable method with name ..." :找不到对应的方法。首选看方法名对不对,再看方法的参数个数,参数类型,还要检查返回数据的类型。
- NetConnection.Call.Failed: HTTP: Status 404: url...: '虚拟主机的域名/子目录/Gateway.aspx'":没将Root URL设置为虚拟主机的域名。
- RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed errorNetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost/Gateway.aspx...'":Root URL中包含的Context Root与Context Root中设置的不一致。
- [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Security.Error error Error #2048...: 安全沙箱冲突
- RPC Fault faultString="MessagingError message='Destination 'fluorine' either does not exist or the destination has no channels defined (and the application does not define any default channels.)'" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'fluorine'"...:FluorineFX没配置或destination 没有定义channels(默认是fluorine),ReferenceError: Error #1056: 无法为 ...创建属性...:当使用[RemoteClass(alias="XXX")],客户端与服务器端Value Object映射时属性名不一致。
二、Http Service
- faultCode:Server.Proxy.Request.Failed faultString:'HTTP/1.1 404 Not Found' faultDetail:'HTTP/1.1 404 Not Found':url错误。
- faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP':不使用代理时遇到安全沙箱冲突。
- The URL specified XXX is not allowed by the selected destination 'DefaultHTTP:使用默认终端代理时遇到安全沙箱冲突。
- No destination with id XXX is registered with any service/MessagingError message='Destination 'students' either does not exist or the destination has no channels defined (and the application does not define any default channels.)':.使用命名终端代理时,destination不一致。