5 Replies Latest reply on May 19, 2009 11:12 PM by TomBurgundy

    Error While calling remote object

    Raja Himanath

      [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/Remote/messagebroker/amf'"]



      This is the error I am getting when I am trying to call a method in java


      This is java code

      package demo;

      public class  Hello


      public String sayHello()


      System.out.println("1st Method is calledddddddd");

      return "Hello World!";


      public String sayHelloWithParam(String str){

      System.out.println("2nd Method is calledddddddd");

      return "You have typed  "+str;



      This is my mxml code
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      import mx.rpc.events.ResultEvent;
      public function sayHello(event:ResultEvent):void{
      public function sayHelloWithParameter(event:ResultEvent):void{
      <mx:RemoteObject id="hello" destination="helloworldclass" fault="mx.controls.Alert.show(event.fault.toString())">
      <mx:method name="sayHello" result="sayHello(event)"/>
      <mx:method name="sayHelloWithParam" result="sayHelloWithParameter(event)"/>
      <mx:Label x="55" y="51" text="Label" id="label1"/>
      <mx:Button x="253" y="49" label="Button1" click="hello.sayHello()"/>
      <mx:TextInput x="55" y="106" id="t1"/>
      <mx:Button x="253" y="106" label="Button2" click="hello.sayHelloWithParam.send();"/>
      When I click the button I am getting that error..
      Please help me in solving this