0 Replies Latest reply on Feb 15, 2011 10:03 PM by sethusubra1

    JAVA AMF Client connection error

    sethusubra1

      Hi,

       

      I am trying to use Java-AMF connection, to connect from my java program to connect to LCDS. I am getting the following error:

       

      Here is the code snippet I use:


         // Create the AMF connection.
              AMFConnection amfConnection = new AMFConnection();   
              String url = "http://localhost:8080/SampleBlazeDS/messagebroker/amf";
              try
              {
                   amfConnection.connect(url);
              }       
              catch (ClientStatusException cse)
              {
                  System.out.println("Exception in connection");
                  cse.printStackTrace();
              }

       

      The exception I get is:

       

      Exception in thread "main" java.lang.NoSuchFieldError: createASObjectForMissingType
           at flex.messaging.io.amf.client.AMFConnection.connect(AMFConnection.java :515)
           at TestClient.main(TestClient.java:24)

       

       

      I  have verified my endpoint in the service-config.xml and it seems to be  correct.Here I am just trying to connect to the end point but am not  able to.

       

      Can anyone please help me what is going wrong?

       

      Thanx in advance.

       

      Regards,

      Sethu