5 Replies Latest reply on Oct 9, 2006 5:04 PM by T._Ruggles

    Configuring RemoteObject Access

      Hi All
      I'm still a newbie so I'm fighting to do something on FDS

      These were the steps I followed to create a simple RPC data acess application through RemoteObject
      1 - I created a java class and a method that returns an ArrayList of data (that works fine, I tested)
      2 - I started a new FDS project on Flex Builder 2 (compile at run-time option)
      3 - I declared it inside my application a RemoteObject and a method pointing to the folder containing the java class (As I copied the restaurant example, I specified no destination)
      4 - I configured a destination inside the remoting-config.xml (this file already existed cause Flex Builder by default places your project along with the restaurant example, the WEB-INF folder is set up)
      5 - run the application

      This error was thrown while first execution compile-time:

      Error: Cannot assign operations into an RPC Service (encoding)
      at mx.rpc::AbstractService/ http://www.adobe.com/2006/actionscript/flash/proxy::setProperty()
      at DataAccess/::_RemoteObject1_i()
      at DataAccess$iinit()
      at mx.managers::SystemManager/create()
      at mx.managers::SystemManager/::initializeTopLevelWindow()
      at mx.managers::SystemManager/::frameEndHandler()

      Please, what am I doing wrong??