How are you loading the SWF compared to the URL that is used to contact
the amf channel endpoint?

If they're not on the same domain, then you'll need a crossdomain.xml
file at the webroot (in the default context root, i.e. the empty string
"" not "/flex") of the FDS server with an entry to allow access from the
other domain from which you're loading the SWF.


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jrjazzman23
Sent: Wednesday, May 31, 2006 11:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RemoteObject calls failing

thanks for the reply.

from the channel def:

<endpoint
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf
"
class="flex.messaging.endpoints.AMFEndpoint"/>

I also tried replacing {context.root} with "flex".  I actually tried
hard coding values for all 3 of the merge fields, which didn't seem to
have any effect.  I've got tomcat on my machine and I'm running from
eclipse, so the browser is using http.

Is there anything else I should check?

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of jrjazzman23
> Sent: Wednesday, May 31, 2006 7:54 PM
> To: flexcoders@yahoogroups.com
> 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::fa
> ul
>
tHandler()[C:\dev\enterprise_beta3\frameworks\mx\rpc\AbstractInvoker.as:
> 191]
>       at
> mx.rpc::Responder/fault()[C:\dev\enterprise_beta3\frameworks\mx\rpc\Re
> sp
> 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\ent
> er prise_beta3\frameworks\mx\messaging\Channel.as:658]
>       at
> mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCha
> nn
> el::connectFailed()[C:\dev\enterprise_beta3\frameworks\mx\messaging\ch
> an
> nels\PollingChannel.as:111]
>       at
> mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::st
> at
> usHandler()[C:\dev\enterprise_beta3\frameworks\mx\messaging\channels\A
> MF
> 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
>






------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology.
It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/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