詳細的報錯內(nèi)容:
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]
==============================================================
剛開始在網(wǎng)上找到的答案都是:
1.改Project屬性的Flex服務器頁內(nèi)容
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”,它的作用是:是否導入網(wǎng)絡監(jiān)視器SWC。作為編譯配置,當然要關閉。
本文出自 “徐晨光的博客” 博客,請務必保留此出處http://xuchenguang.blog.51cto.com/730272/529873
!?。。。。?
隱約記得自己是試過FB里網(wǎng)絡監(jiān)視器的功能。
posted on 2011-10-31 23:08
三刀流の逆風 閱讀(3193)
評論(0) 編輯 收藏 所屬分類:
Flex