Expand my Community achievements bar.

How to make remote object working?

Avatar

Level 2
I just started to use Remote Object and FDS. However, I
cann't get a simple application working. I am working with tomcat
and build my application under the flex structure provided in FDS
package. I keep getting the same error:



[RPC Fault faultString="[MessagingError message='Unknown
destination 'bitmapmanager'.']" faultCode="InvokeFailed"
faultDetail="Couldn't establish a connection to 'bitmapmanager'"]

at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\dev\enterprise_gmc\frameworks\mx\rpc\Abstrac...

at mx.rpc.remoting.mxml::Operation/
http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\dev\enterprise_gmc\frameworks\mx\rpc\remotin...

at
mx.rpc.remoting::Operation/send()[C:\dev\enterprise_gmc\frameworks\mx\rpc\remoting\Operation.as:120]

at Function/
http://adobe.com/AS3/2006/builtin::apply()

at
mx.rpc.remoting.mxml::Operation/send()[C:\dev\enterprise_gmc\frameworks\mx\rpc\remoting\mxml\Operation.as:143]

at Function/
http://adobe.com/AS3/2006/builtin::apply()

at mx.rpc::AbstractService/
http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[C:\dev\enterprise_gmc\frameworks\...

at
remote/remote::showMap()[D:\flexExample\dataservices\remote.mxml:30]

at
remote/___Button1_click()[D:\flexExample\dataservices\remote.mxml:34]



I put my Java class files under
tomcat/webapps/flex/WEB-INF/classes. And defined the destination in
remoting-config.xml as follows:

<destination id="bitmapmanager">

<properties>

<source>org.bitmap.BitmapManager</source>

</properties>

</destination>



Can anyone please tell me what causes this problem and how I
can make Remote Object working? Thanks.







2 Replies

Avatar

Level 2
Are you initializing the data service? Something like:

ds = new DataService("bitmapmanager");



Mark

Avatar

Level 2
Thanks a lot for the reply. I've figured out it is the
configuration problem. It's working now.