内容简介:有时我们在做项目的时候会遇到Flex 错误提示mx.messaging.messages::RemotingMessage,那么产生这个错误的原因是什么呢,今天我们来分析下
先看下异常信息:
(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的声明,没有找到,所以报告如上异常信息。
以上所述就是小编给大家介绍的《Flex 错误(mx.messaging.messages::RemotingMessage)分析》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Agile Web Development with Rails 4
Sam Ruby、Dave Thomas、David Heinemeier Hansson / Pragmatic Bookshelf / 2013-10-11 / USD 43.95
Ruby on Rails helps you produce high-quality, beautiful-looking web applications quickly. You concentrate on creating the application, and Rails takes care of the details. Tens of thousands of deve......一起来看看 《Agile Web Development with Rails 4》 这本书的介绍吧!