商城首页欢迎来到中国正版软件门户

您的位置: 首页 > 文章列表 > 编程开发 > Flex 错误(mx.messaging.messages::RemotingMessage)分析

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

  发布于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标签的idClassesDao的声明根本不存在。那结果自然就是上面那个异常信息了——系统找不到目标,只能抛个空字符串回来。

本文转载于:https://www.jb51.net/article/51398.htm 如有侵犯,请联系zhengruancom@outlook.com删除。
免责声明:正软商城发布此文仅为传递信息,不代表正软商城认同其观点或证实其描述。

热门关注