Have you got a {context.root} token in the channel-definition endpoint
for the "my-amf" channel? If so, can you try removing it to hard code
the context root, or if you want it to remain in the config, you must
specify --context.root as a command line parameter.

Next, how did you load the SWF? Using an HTTP url or the file system? If
the latter, try either replacing the {server.name} and {server.port}
tokens with the real values of the tomcat server or try hosting the SWF
on the web app and browsing to it.


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of jrjazzman23
Sent: Wednesday, May 31, 2006 7:54 PM
To: [email protected]
Subject: [flexcoders] RemoteObject calls failing

Hi.  I'm having trouble getting a simple RemoteObject call to work.
Running tomcat 5.5  Here are some pertinent snippets.  The call
generates this:

fault
[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::faul
tHandler()[C:\dev\enterprise_beta3\frameworks\mx\rpc\AbstractInvoker.as:
191]
      at
mx.rpc::Responder/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\Resp
onder.as:56]
      at
mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\A
syncRequest.as:107]
      at
mx.messaging::ChannelSet/mx.messaging:ChannelSet::faultPendingSends()[C:
\dev\enterprise_beta3\frameworks\mx\messaging\ChannelSet.as:946]
      at
mx.messaging::ChannelSet/channelFaultHandler()[C:\dev\enterprise_beta3\f
rameworks\mx\messaging\ChannelSet.as:679]
      at flash.events::EventDispatcher/dispatchEvent()
      at
mx.messaging::Channel/mx.messaging:Channel::connectFailed()[C:\dev\enter
prise_beta3\frameworks\mx\messaging\Channel.as:658]
      at
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChann
el::connectFailed()[C:\dev\enterprise_beta3\frameworks\mx\messaging\chan
nels\PollingChannel.as:111]
      at
mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::stat
usHandler()[C:\dev\enterprise_beta3\frameworks\mx\messaging\channels\AMF
Channel.as:285]
[object Object]


Here are some pertinent snippets:

<destination id="DataTest">
          <adapter ref="java-object" />
          <channels>
                <channel ref="my-amf" />
          </channels>
         
          <properties>
                <source>com.test.Account</source>
          </properties>

    </destination>


Action Script:

var dataTest:mx.rpc.remoting.RemoteObject = new RemoteObject();
                        dataTest.destination = "DataTest";
     
dataTest.getName.addEventListener("result", handleResult);
                        dataTest.addEventListener("fault",
handleFault);
                        dataTest.bla();


remote object:

package com.test

public class Account {

      public String Name = null;
     
      public Account() {
            Name = "My Company";
      }
     
      public String bla() {
            return Name;
      }

}


I appreciate any help.

Jeremy






------------------------ Yahoo! Groups Sponsor --------------------~-->
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to