当前位置:主页 > 查看内容

Flex 错误(mx.messaging.messages::RemotingMessage)分析

发布时间:2021-04-07 00:00| 位朋友查看

简介:先看下异常信息: (mx.messaging.messages::RemotingMessage)#0 body = (Array)#1 clientId = (null) destination = "" headers = (Object)#2 messageId = "9D7C932F-AFFA-26C1-F624-C1EA7B88DB1B" operation = "getAllClasses" source = (null) timestamp =……

先看下异常信息:

(mx.messaging.messages::RemotingMessage)#0

 body = (Array)#1

 clientId = (null)

 destination = ""

 headers = (Object)#2

 messageId = "9D7C932F-AFFA-26C1-F624-C1EA7B88DB1B"

 operation = "getAllClasses"

 source = (null)

 timestamp = 0

timeToLive = 0

从异常信息中可以发现destination值为空字符串,根本原因是配置文件remoting-config.xml中没有定义destination对应的调用目标。

比如

var classesDao : RemoteObject = new RemoteObject("ClassesDao");

到remoting-config.xml中查找destination标签Id为ClassesDao的声明,没有找到,所以报告如上异常信息。


本文转载自网络,原文链接:https://m.jb51.net/article/51398.htm
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!

推荐图文


随机推荐