深蓝的天空下,有你有我...
共享酸、甜、苦、辣
posts - 23,comments - 19,trackbacks - 0
详细的报错内容: Error: (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = "BF5E2F0B-2E2D-AE6C-F609-5A62F45603F0" destination = "" extendedData = (null) faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/freight/messagebroker/amf'" faultString = "Send failed" headers = (Object)#2 messageId = "00C50FEC-A91C-FB7E-5C3E-5A62F9489CE9" rootCause = (mx.messaging.events::ChannelFaultEvent)#3 bubbles = false cancelable = false channel = (mx.messaging.channels::AMFChannel)#4 authenticated = false channelSets = (Array)#5 connected = false connectTimeout = -1 enableSmallMessages = true endpoint = "http://localhost:8080/freight/messagebroker/amf" failoverURIs = (Array)#6 id = "my-amf" mpiEnabled = false netConnection = (flash.net::NetConnection)#7 client = (mx.messaging.channels::AMFChannel)#4 connected = false maxPeerConnections = 8 objectEncoding = 3 proxyType = "none" uri = "http://localhost:37813/freight/messagebroker/amf?hostport=localhost:8080&https=N&id=-1" piggybackingEnabled = false polling = false pollingEnabled = true pollingInterval = 3000 protocol = "http" reconnecting = false recordMessageSizes = false recordMessageTimes = false requestTimeout = -1 uri = "http://{server.name}:{server.port}/freight/messagebroker/amf" url = "http://{server.name}:{server.port}/freight/messagebroker/amf" useSmallMessages = false channelId = "my-amf" connected = false currentTarget = (mx.messaging.channels::AMFChannel)#4 eventPhase = 2 faultCode = "Channel.Connect.Failed" faultDetail = "NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/freight/messagebroker/amf'" faultString = "error" reconnecting = false rejected = false rootCause = (Object)#8 code = "NetConnection.Call.Failed" description = "HTTP: Failed" details = "http://localhost:37813/freight/messagebroker/amf?hostport=localhost:8080&https=N&id=-1" level = "error" target = (mx.messaging.channels::AMFChannel)#4 type = "channelFault" timestamp = 0 timeToLive = 0 at f/faultHandler()[F:\FB45\f\src\f.mxml:87] at mx.rpc::Responder/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:68] at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncToken.as:219] at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\events\FaultEvent.as:204] at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:244] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:350] at mx.rpc::Responder/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:68] at mx.rpc::AsyncRequest/fault()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113] at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1619] at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1209] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Channel/connectFailed()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\Channel.as:1117] at mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:435] at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:453] ============================================================== 刚开始在网上找到的答案都是: 1.改Project属性的Flex服务器页内容 Root URL(根 URL)为:http://localhost:8080/你的JAVA项目名/ Context root (上下文根目录)为:/你的JAVA项目名 2.改services-config.xml 里的 https://{server.name}:{server.port}/{context.root}/messagebroker/amf 为 https://{server.name}:{server.port}/你的JAVA项目名}/messagebroker/amf 其实都不贴切!!! !!!!!! 真正的解决问题的方法是: 打开你的工程下/.actionScriptProperties文件,查找“includeNetmonSwc”,从“true”改为“false”,它的作用是:是否导入网络监视器SWC。作为编译配置,当然要关闭。 本文出自 “徐晨光的博客” 博客,请务必保留此出处http://xuchenguang.blog.51cto.com/730272/529873 !!!!!! 隐约记得自己是试过FB里网络监视器的功能。
posted on 2011-10-31 23:08 三刀流の逆风 阅读(3191) 评论(0)  编辑  收藏 所属分类: Flex

只有注册用户登录后才能发表评论。


网站导航: