加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flex应用BlazeDS时报错:[RPC Fault faultString="发送失败&

发布时间:2020-12-15 01:15:08 所属栏目:百科 来源:网络整理
导读:? (1)错误[RPC Fault faultString="发送失败" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"] ? ? 项目文
?

(1)错误[RPC Fault faultString="发送失败" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"]

?

?

项目文件夹下面.flexProperties文件里有段

<flexProperties enableServiceManager="false" flexServerFeatures="4" flexServerType="8" flexWarLocation="E:/blazeds.war"serverContextRoot="/WebContent" serverRoot="E:/workspaces/flex/WebContent" serverRootURL="http://localhost:80/flex" toolCompile="true" useServerFlexSDK="false" version="2"/>

真凶终于出来了...就是serverContextRoot="/WebContent"这个,把它改成项目名,问题就解决了...

(2)

当debug FLEX 项目sampleone时候会出现一下错误提示:

[FaultEvent fault=[RPC Fault faultString="发送失败" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'http://localhost:8080/sampleone/messagebroker/amf'"] messageId="003C8C83-3588-2754-C312-21493C38557B" type="fault" bubbles=false cancelable=true eventPhase=2]

解决方案:在*action.xml中的<bean>部分出现问题
<bean id="departAction" class="com.sampleone.pm.action.DeptNameAction">
?? <flex:remoting-destination />
?? <property name="deptNameDAO" ref="deptNameDAO"/>
?</bean>
property的name有问题:property中的name指向的是 DeptNameAction .java类中的接口类型的成员变量deptNameDAO,property中的ref指的是这个成员变量deptNameDAO的类型是deptNameDAO类型的(也就是接口类型的)。

因此name跟DeptNameAction.java中的接口类型的成员变量deptNameDAO抑制

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读