Error logging--flex call remoting failed

Source: Internet
Author: User

Flex Call Remoting failed.
The error message is as follows:
(mx.messaging.messages::errormessage) #0
BODY = (Object) #1
ClientId = (NULL)
Correlationid = "2d787902-7186-d6a1-f049-8f739cc79c67"
Destination = ""
Extendeddata = (NULL)
FaultCode = "Client.Error.MessageSend"
Faultdetail = "Channel.Connect.Failed error NetConnection.Call.Failed:HTTP:Status 404:url: ' http://localhost:8080/ Webcontent/messagebroker/amf ' "
faultstring = "Send failed"
headers = (Object) #2
MessageID = "5d03a245-e531-fe7f-ffde-8f739d255904"
Rootcause = (mx.messaging.events::channelfaultevent) #3
Bubbles = False
Cancelable = False
Channel = (Mx.messaging.channels::amfchannel) #4
Authenticated = False
Channelsets = (Array) #5
[0] (Mx.messaging::channelset) #6
Authenticated = False
Channelids = (Array) #7
[0] "MY-AMF"
Channels = (Array) #8
[0] (Mx.messaging.channels::amfchannel) #4
Clustered = False
Connected = False
Currentchannel = (Mx.messaging.channels::amfchannel) #4
Initialdestinationid = (NULL)
Messageagents = (Array) #9
[0] (mx.rpc::asyncrequest) #10
Authenticated = False
AutoConnect = True
ChannelSet = (mx.messaging::channelset) #6
ClientId = (NULL)
Connected = False
Defaultheaders = (NULL)
Destination = "Helloremoting"
id = "eb72b9fc-d54e-d29c-db69-8f736df76188"
reconnectattempts = 0
Reconnectinterval = 0
Requesttimeout =-1
subtopic = ""
Connected = False
ConnectTimeout =-1
Enablesmallmessages = True
Endpoint = "HTTP://LOCALHOST:8080/WEBCONTENT/MESSAGEBROKER/AMF"
Failoveruris = (Array) #11
id = "MY-AMF"
Mpienabled = False
Netconnection = (flash.net::netconnection) #12
Client = (Mx.messaging.channels::amfchannel) #4
Connected = False
objectencoding = 3
Proxytype = "None"
URI = "HTTP://LOCALHOST:8080/WEBCONTENT/MESSAGEBROKER/AMF"
Piggybackingenabled = False
Polling = False
Pollingenabled = False
PollingInterval = 3000
protocol = "HTTP"
reconnecting = False
Recordmessagesizes = False
Recordmessagetimes = False
Requesttimeout =-1
URI = "HTTP://{SERVER.NAME}:{SERVER.PORT}/WEBCONTENT/MESSAGEBROKER/AMF"
url = "HTTP://{SERVER.NAME}:{SERVER.PORT}/WEBCONTENT/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:Status 404:url: ' HTTP://LOCALHOST:8080/WEBCONTENT/MESSAGEBROKER/AMF ' "
faultstring = "Error"
reconnecting = False
Rejected = False
Rootcause = (Object) #13
Code = "NetConnection.Call.Failed"
Description = "Http:status 404"
Details = "HTTP://LOCALHOST:8080/WEBCONTENT/MESSAGEBROKER/AMF"
Level = "Error"
target = (Mx.messaging.channels::amfchannel) #4
Type = "Channelfault"
Timestamp = 0
TimeToLive = 0

or error message:
FaultCode:Client.Error.MessageSend faultstring: ' Send failed ' faultdetail: ' Channel.Connect.Failed Error NetConnection.Call.Failed:HTTP:Status 404:url: ' HTTP://LOCALHOST:8080/WEBCONTENT/MESSAGEBROKER/AMF '


Solution:
Endpoint problem, in Services-config.xml file, due to this type of endpoint:
<endpoint url= "HTTP://{SERVER.NAME}:{SERVER.PORT}/{CONTEXT.ROOT}/MESSAGEBROKER/AMF" class= " Flex.messaging.endpoints.AMFEndpoint "/>, the {context.root} in is not getting the project name.

Workaround, select the item, right-click "Properties"--> "Flex Server"--> Change the contents of context root (the contextual path at browser access) to "/Project name",-->ok.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.