1 Reply Latest reply on Feb 26, 2010 5:44 AM by aarthi_k

    Channel.Ping.Failed error

    aarthi_k

      hi

       

      i am new to adobe flex and java

      i have created a simple flex application and tried to pass a textbox content to server side through remote messaging

      and i have deployed the application in tomcat..........but when i run the application in the browser after entering the required detail and when i click the submit button i am getting thr following error..............

       

       

      my client side code

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768"
                    >
         
          <fx:Script>
             
          </fx:Script>
         
          <fx:Declarations>
              <mx:RemoteObject id= "ro" destination="my">
                 
              </mx:RemoteObject>
          </fx:Declarations>
         
          <!-- Place non-visual elements (e.g., services, value objects) here -->
         
          <s:Label text="Name" id="un" fontFamily="Times New Roman" fontSize="18" fontWeight="bold" textAlign="center" verticalAlign="middle" verticalCenter="-119" left="305"/>
          <s:TextInput id="username" enabled="true" fontFamily="Times New Roman" fontSize="16" textAlign="center" right="389" verticalCenter="-120"/>
          <s:Button label="OK" id="submit" enabled="true" click="ro.output(username.text)" fontSize="18" fontWeight="bold" textAlign="center" horizontalCenter="-32" bottom="440"/>
      </s:Application>

       

       

      my server side code:

       

      just a class with one method that print the content ofthe text box passed through remote messaging

       

      error

       

       

      [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Ping.Failed error  url: 'http://199.63.244.235:8082/samplexflex/messagebroker/http''"]
          at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\gumbo_beta2\frameworks\p rojects\rpc\src\mx\rpc\AbstractInvoker.as:345]
          at mx.rpc::Responder/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\Responder .as:68]
          at mx.rpc::AsyncRequest/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:113]
          at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\gumbo_beta2\frameworks\projects\rpc\s rc\mx\messaging\ChannelSet.as:1614]
          at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc \src\mx\messaging\ChannelSet.as:1206]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at mx.messaging::Channel/connectFailed()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\m essaging\Channel.as:1128]
          at mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\gumbo_beta2\frameworks\proje cts\rpc\src\mx\messaging\channels\PollingChannel.as:406]
          at mx.messaging.channels::HTTPChannel/pingErrorHandler()[E:\dev\gumbo_beta2\frameworks\proje cts\rpc\src\mx\messaging\channels\HTTPChannel.as:682]
          at ChannelRequestLoader/callEventCallback()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\m x\messaging\channels\HTTPChannel.as:1218]
          at ChannelRequestLoader/ioErrorHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\m essaging\channels\HTTPChannel.as:1236]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at flash.net::URLLoader/onComplete()

       

       

       

      kindly help me out...

       

      also the server is in remote system not in my machine.........

       

      Thanks in advance