出现该问题
<mx:RemoteObject id="robj" destination="hello" endpoint="http://localhost:8080/Remote_Flex/messagebroker/amf" result="onResult(event)" fault="onFault(event)" showBusyCursor="true"/>
mxml文件没错的话,可以看下services-config.xml的<services>下面
<destination id="hello">
<properties>
<source>tangyi.flex.HelloWord</source>
</properties>
<!-- <adapter ref="java-object" /> -->
</destination>
这个节点的destination属性channels="amf"没配置,注意这里的amf对应的services-config.xml的AMF协议,如下
<channels> <channel-definition id="amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition> </channels>
当然也有可能是mxml文件中的RemoteObject的属性endpoint未配置