admin管理员组文章数量:1635829
[RPC Fault faultString="[MessagingError message='Destination 'data-push' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'data-push' "]
在做flex remote的时候遇到上面一个bug,说是Destination没有找到或是通道未定义,整了半天终于解决了。
解决办法如下:
1: 看flex项目的libs下面是否添加了blazeds.war
2: 修改flex项目-properties-Fex Compiler 下面 additional compiler arguments 为
-services "D:/workspace/hat/WebRoot/WEB-INF/flex/services-config.xml" -locale en_US
3 : 前提是 java项目里面blazeds配置基本正确。另外注意java项目下services-config.xml里面的
<channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">
<endpoint url="https://localhost:8080/hat/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
<properties>
<idle-timeout-minutes>0</idle-timeout-minutes>
<max-streaming-clients>10</max-streaming-clients>
<server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis>
<user-agent-settings>
<user-agent match-on="MSIE" kickstart-bytes="2048" max-streaming-connections-per-session="10"/>
<user-agent match-on="Firefox" kickstart-bytes="2048" max-streaming-connections-per-session="10"/>
</user-agent-settings>
</properties>
</channel-definition>
红色字体部分的服务器路径要写正确。
每个人出现问题的原因可能不同,这只是我自己问题的解决办法,希望对大家有帮助。
本文标签: quotMessagingErrorMessageRPCfault
版权声明:本文标题:RPC Fault faultString="[MessagingError message='Destination 'data-push' either does not exist or the des 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1729217299a1190573.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论