0 Replies Latest reply on Mar 5, 2007 2:52 PM by plutonianelephant

    Help With First FDS Application

      I'm trying to write my first simple FDS application and can't seem to connect to my Java object to retrieve data to populate a DataGrid. I'm deploying on a JBoss server and am using Flex Builder IDE.I know the answer must be pretty simple, but I can't seem to pinpoint it. Can anybody please take a quick look to see where my mistake might be? Any help is greatly appreciated. Thank You.

      The error I'm getting is:

      [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
      at mx.rpc::Responder/fault()

      My remoting-config.xml file looks like this:

      <service id="remoting-service"

      <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>

      <channel ref="my-amf"/>

      <destination id="myService">


      and my services.config.xml looks like this:

      <?xml version="1.0" encoding="UTF-8"?>

      <service-include file-path="remoting-config.xml" />

      <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
      <endpoint uri=" http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>


      My flex-config.xml looks like this:

      <flex-config xmlns=" http://www.adobe.com/2006/flex-config">

      My mxml file look like this:

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:RemoteObject id="myService" destination="myService"/>

      <mx:Label x="345" y="154" text="Hello World!"/>
      <mx:Button x="345" y="180" label="Click Me!" click="myService.getList()"/>
      <mx:DataGrid dataProvider="{myService.getList.lastResult}" x="345" y="210"/>


      My java object looks like this:

      public class BasicJavaService {

      public List getList() {
      List<MyObject> l = new ArrayList<MyObject>();

      l.add(new MyObject("str1A", "str1B", "str1C"));
      l.add(new MyObject("str2A", "str2B", "str2C"));
      l.add(new MyObject("str3A", "str3B", "str3C"));
      return l;