Title: Message
Hi Peter,
 
I have checked the Flash Remoting version on the production server:
 
 
Manifest-Version: 1.575330
Main-Class: gateway.57533controller.57533Gateway
Sealed: false
Implementation-Vendor: "Macromedia"
Implementation-Version: "1.575330.57533"
Implementation-Title: "Macromedia Flash RemotingMX for Java"
 
 
 
And in the local (developer) server:
 
 
Manifest-Version: 1.575330
Main-Class: gateway.57533controller.57533Gateway
Sealed: false
Implementation-Vendor: "Macromedia"
Implementation-Version: "1.575330.57533"
Implementation-Title: "Macromedia Flash RemotingMX for Java"
 
 
 
I used the same version: in both production server and developing server.
 
 
The ColdFusion version I used is 6.0 because I haven't found the 6.1 J2EE.
 
Thanks
Alessio
 
 
 
----- Original Message -----
Sent: Monday, March 07, 2005 4:24 PM
Subject: RE: [flexcoders] problem with RemoteObject and Flash Remoting

Hi Alessio,
 
Can you check whether there are any stacktraces or other errors in the ColdFusion flash.log file?
 
Also, can you find the flashgateway.jar file under /WEB-INF/cfusion/lib? If it is there, can you please open it and tell me the contents of the META-INF/MANIFEST.MF file? Specifically I'm looking for the Implementation Version.
 
What we might need to do is update the Flash Remoting version.
 
Is there any reason why you can not upgrade to ColdFusion MX 6.1 (Redsky release)?
 
Pete
 
 
-----Original Message-----
From: AlessioProsperi [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 4:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] problem with RemoteObject and Flash Remoting

Peter,
I suppose that CFC files are found by the gateway because, if I try to write a bad file name, I get a different error message: "Service threw an exception during method invocation: No service named compo2.intefaccia is known to Flash Remoting MX."
 
If I change the RemoteObject source attribute with the right component path, I get the following message: "Service threw an exception during method invocation: null".
 
 
The source code of the declaration tag is:
 
...
<mx:RemoteObject id="remoteObj" showBusyCursor="true" source="compo.interfaccia">
 
...
 
or
 
...
<mx:RemoteObject id="remoteObj" showBusyCursor="true" source="compo.interfaccia" endpoint="http://mywebsite:8100/flashservices/gateway">
 
...
 
 
We get the same result with or without the endpoint attribute.
 
 
For a better understanding I show you my web site directories structure:
 
 
    /root web site/
                         --> compo/....CFC files....
                         --> images/....
                         --> WEB-INF/.....(Flex classes)
 
                        .... MXML files....
 
 
We use JRun 4 (updater 4) with ColdFusion 6 MX for J2EE deployed. Both (the Flex application and ColdFusion) are deployed on the same default JRun server.
I have removed the JRun Flash Remoting application so there are only the ColdFusion FR gateway.
 
 
I hope this is a more clear scenario to understand my configuration.
 
Thanks
Alessio
 
 
 
 
 
----- Original Message -----
Sent: Friday, March 04, 2005 7:20 PM
Subject: RE: [flexcoders] problem with RemoteObject and Flash Remoting

Alessio,
 
Can you describe more about where your CFC is on disk or the layout of your application on the production server? Note that in order for ColdFusion's Flash Remoting gateway to be able to invoke aCFC, the CFC file must physically reside under a web root (i.e. you can not place it under /WEB-INF/whatever and then rely on CF Virtual Mappings). 
 
 
P.S. RemoteObject is a Flex feature that happens to work very similarly to Flash Remoting, but the primary use case for it isn't to contact a legacy CF 6.0 Flash Remoting gateway. While it is possibleto do so because RemoteObject makes asynchronous AMF requests over a NetConnection and that you can change the endpoint attribute, Flex doesnot guarantee that all RemoteObject features translate to legacy systems (for example, service types, new data type mappings, new custom authentication APIs etc).
 
-----Original Message-----
From: Alessio Prosperi [mailto:[EMAIL PROTECTED]
Sent: Friday, March 04, 2005 12:58 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] problem with RemoteObject and Flash Remoting

Hi Tarik,
I have developed the application in a local web server (without domain but with virtual directories on a same domain) and it works perfectly.
 
Now I try to create the production server (which have more than one domain) and I don't know how to configure both: Flex application and Flash Remoting.
 
Using WebService tag the method call works, but I should rewrite all the application logic because I call RemoteObject with dynamic arguments.
 
 
It's strange that Macromedia havo no documentation about it!!!
 
 
 
 
----- Original Message -----
Sent: Friday, March 04, 2005 6:21 PM
Subject: Re: [flexcoders] problem with RemoteObject and Flash Remoting

Sorry I missed the start of this thread. But could it be that you CFC is bombing? I usually create test cfm's to try out the CFC passing the same data that the Flex app would to make sure that everything is cool on the CF side of things.


Alessio Prosperi wrote:
The version of ColdFusion for J2EEis 6.0
 
 
Thanks
 
 
----- Original Message -----
Sent: Friday, March 04, 2005 5:18 PM
Subject: RE: [flexcoders] problem with RemoteObject and Flash Remoting

 
When I try start this application, I get Flash Remoting error message: "Service threw an exception during method invocation: null".
 
[Pete] The fact that you received thaterror means that you did hit a FR gateway servlet, but a null pointer exception happened. What version of ColdFusion for J2EE are you using?
 
 
 
 
What can I do now?
   
     1) I should try to use the amfgateway (if so, I don't know how to use it with the RemoteObject tag) 
 
[Pete] You can't use the amfgateway from Flex to contact CFCs. ColdFusion is loaded in its own bootstrap classloader.





Reply via email to