第一次按照例子做的FLEX DEMO ,出现如下错误 ,在此记录一下:
[FaultEvent fault=[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"]
messageId="C25D6E12-4A22-9827-849A-C56BBBB434F4" type="fault" bubbles=false
cancelable=true eventPhase=2]
解决方法:
在
<mx:RemoteObject id="firstRO" destination="FirstJavaClassRemoteObject"
fault="faultEvent(event)" endpoint="http://localhost:8080/FlexDemo/messagebroker/amf"/>
[FaultEvent fault=[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"]
messageId="C25D6E12-4A22-9827-849A-C56BBBB434F4" type="fault" bubbles=false
cancelable=true eventPhase=2]
解决方法:
在
<mx:RemoteObject id="firstRO" destination="FirstJavaClassRemoteObject"
fault="faultEvent(event)" endpoint="http://localhost:8080/FlexDemo/messagebroker/amf"/>
本文记录了一次在Flex项目中遇到的404错误,并提供了详细的解决步骤。错误发生在尝试通过RemoteObject连接到Java后端时,原因是目标URL未找到。文章指导如何修改RemoteObject组件的endpoint属性来解决问题。
4257

被折叠的 条评论
为什么被折叠?



