先看下异常信息:
(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的声明,没有找到,所以报告如上异常信息。
发表评论