admin管理员组

文章数量:1635818

[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