Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

how to set MessageAgent's destination for remoteObject?


Level 1

i am trying to make the remoteobject work on my mxml. but i
got this error

[RPC Fault faultString="[MessagingError message='The
MessageAgent's destination must be set to send messages.']"
faultCode="InvokeFailed" faultDetail="Couldn't establish a
connection to ''"]

at mx.rpc::AbstractInvoker/

at mx.rpc.remoting.mxml::Operation/

at mx.rpc.remoting::Operation/send()

at Function/

at mx.rpc.remoting.mxml::Operation/send()

at Function/

at mx.rpc::AbstractService/

at RALogging1/___Button1_click()

this is the part of my mxml and the error pops up when the
button is clicked. i have a javaclass "LogManager" under
WEB-INF\classes\ra\logging. so i think i need to do something on
some config xml. what do i need to do?

ra.logging.LogManager :

<mx:RemoteObject id="logMgr"
fault=", 'Error');">

<mx:method name="getList"/>



<mx:Button label="Get Log List"


0 Replies


Level 3

In WEB-INF/flex, there is a remote-config.xml. You should
defined a destination there. Without the destination, remoteobject
has not enough information to establish its connection such as
which channel to use. Following are examples of destinations and

1. use default channels defined

<destination id="BlobInObj">





2. not using default channels

<destination id="BlobInObj" channels="my-amf,my-rtmp">





<RemoteObject destination="BlobInObj" id="ro"/>

Hope the above info help!


William Chan