发布于2026-07-22 阅读(0)
扫一扫,手机访问
先看下异常信息:
(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 = 0timeToLive = 0
看到没?destination的值是个空字符串,这可不是什么玄学问题——罪魁祸首就是配置文件remoting-config.xml里压根没定义这个destination对应的调用目标。
举个例子:
var classesDao : RemoteObject = new RemoteObject("ClassesDao");
代码里写着要调用ClassesDao这个destination,但跑到remoting-config.xml里一查,destination标签的id为ClassesDao的声明根本不存在。那结果自然就是上面那个异常信息了——系统找不到目标,只能抛个空字符串回来。
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
正版软件
正版软件
正版软件
正版软件
正版软件
1
2
3
7
8