|
Mailing Lists
|
Home /
Groups /
Adobe Integrated Runtime (AIR)
RemoteObject Troubles on Windows
Author: Scott McAllister
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5594
It turns out it was the server. We moved all the CF code to a freshly installed
instance of Apache, running on more reliable hardware, and it seems to work.
Thanks again for all you help.
-Scott
Author: Scott McAllister
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5593
Interesting development. All of this trouble has been with connecting to the
production server where ColdFusion is running on Apache2. I just had someone run
a test where they ran the updater from the AIR app installed on Vista pointed to
our development server where CF is running on IIS, and it worked.
Looking at the apache error logs on the production server I found this repeating
entry around the same time as running the updates:
mod_mime_magic: invalid type 0 in mconvert()., referer: app:/myAppName.swf
I'm not exactly sure what that means, but it's progress.
Thanks again for all your thoughts. Still open to any suggestions or tips.
-Scott
Author: Scott McAllister
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5592
Fully updated versions of XP and Vista have been tested, and the error has
occurred on both OSes.
-Scott
Author: Dana
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5591
again, I am thinkign that if the issue were the code it would not work
on macs either. Can you tellme which Windows OSes you are using
exactly on both machines?
----- Excess quoted text cut - see Original Post for more -----
Author: Scott McAllister
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5590
Sorry if this is another duplicate. I could have sworn I posted earlier today.
Thanks for the replies!
@James - My apologies, my actually code does indeed have the full domain in the
updateRO.endpoint.
@Dana - I also think it could be something to do with connections, but I don't
know enough about Windows to know where to look.
Another twist that I discovered today is that out of the 11 RemoteObject calls
the first one completes just fine on Windows. The blow up happens on the second
RemoteObject call. But, in the past, when it was CF code that broke the app I
received a different error that indicated the CFC couldn't be invoked. So, I
can't think the actual CF code is the problem. Am I wrong?
Thanks again for all your help!
-Scott
Author: Dana
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5589
silly laptop, I did not mean to send that yet.... Am thinkinng your
problem is not code syntax if the code works on a mac -- that is why I
am thinking about connections. For other connections (not involving
this particular code) is it also true that you can connect to campus
with the mac but not with windows?
----- Excess quoted text cut - see Original Post for more -----
Author: Dana
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5588
there's an interesting suggestion! I am thinking that your issue is not
----- Excess quoted text cut - see Original Post for more -----
Author: James Holmes
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5587
Is the server in this:
updateRO.endpoint = "http://myserver/flex2gateway/";
just the server name of the full domain name? If it's just the server
name, perhaps your MAC has a hosts entry for that server that your PC
doesn't.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
----- Excess quoted text cut - see Original Post for more -----
Author: Scott McAllister
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5586
Sorry for the duplicates posts, I always forget there is a hesitation on
houseoffusion before posts are presented.
@Dana, The CF server resides on campus. The funny part is that when I test the
RemoteObject at home (off campus) it works on my MacBookPro while it's running
XP, but not on a Dell laptop running XP from the same location. I've tried from
various locations (and with various hardware configs) off campus and the only
consistent behavior is that the RemoteObject always works from a Mac and not from
XP. I have yet to find a test machine that runs Vista (off campus), so I'm not
sure if the latest version of Windows would change anything.
@Steve, I'm using RemoteObject inside of an AS Class. The code I use to set up
the RO looks something like this:
import mx.rpc.remoting.mxml.RemoteObject;
private var updateRO:RemoteObject;
updateRO = new RemoteObject();
updateRO.destination = "ColdFusion";
updateRO.endpoint = "http://myserver/flex2gateway/";
updateRO.source = "path.to.remoteObject.UpdateRO";
updateRO.requestTimeout = 120;
I then have around 11 eventListeners that prepare for corresponding function
calls in the updateRO. They look like the following:
updateRO.checkForNew.addEventListener("result",checkForNewHandler);
updateRO.checkForNew.addEventListener("fault",newErrorHandler);
And then I initiate the process by calling the functions in the updateRO like so:
updateRO.checkDBUpdates( updateDate );
This is all very new to me, so any tips would be awesome. Thanks for your
replies, and offering up your help!
-Scott
Author: Steve Good
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5585
Do you have an example of how you are using RemoteObject? I work with
these all day every day and I haven't found any issues with ROs and
the OS.
Steve Good
http://lanctr.com
On Dec 8, 2008, at 1:59 PM, Scott McAllister wrote:
----- Excess quoted text cut - see Original Post for more -----
Author: Dana
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5584
is the ColdFusion install on campus? you may be running into network
security,like a firewall. On the other hand you say this works on a
Mac whether you are on campus or not? What Windows are we talking
about?
----- Excess quoted text cut - see Original Post for more -----
Author: Scott McAllister
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5582
Thanks to a previous thread on this site I was able to get RemoteObject in a AIR
app to work seamlessly with a ColdFusion server...most of the time.
The RemoteObject connects with ColdFusion to retrieve data updates from the
server. As I mentioned, this setup is working superbly when the AIR app is
installed on a Mac. However, when the app is install on Windows I receive the
following error whenever trying to retrieve updates from ColdFusion:
faultCode: Channel.Call.Failed
faultString:'error'
faultDetail:'NetConnection.Call.Failed: HTTP: Failed'
There is one more twist in this dilemma, the CF server resides on a high powered
university network where I work. On campus Windows runs the RemoteObject code
perfectly. It is only off campus where this error occurs.
Any tips on understanding and/or fixing this error would be delightful.
Thanks,
Scott
Author: Scott McAllister
Short Link: http://www.houseoffusion.com/groups/adobe-integrated-runtime/thread.cfm/threadid:1797#5583
Thanks to the other thread on here regarding the use of RemoteObject in AIR I
have been able to create a great connection between my AIR app and a CF server.
At least, most of the time.
I have a Flex-based AIR app that uses a RemoteObject that connects with
ColdFusion to retrieve updates on the data stored in the AIR app. As I mentioned,
this setup is working superbly when the AIR app is installed on a Mac. However,
when the app is installed on Windows I receive the following error whenever
trying to retrieve updates from ColdFusion:
faultCode: Channel.Call.Failed
faultString:'error'
faultDetail:'NetConnection.Call.Failed: HTTP: Failed'
The other twist on this issue is that it only occurs off campus. Working on a
high speed university network, where the CF server is located, I can run the AIR
app on either operating system and it works with the CF server just fine. My
issue is with using RemoteObject with my AIR app installed on Windows running off
campus.
Any help in understanding this issue and/or how to fix it would be delightful.
Thanks,
Scott
|
May 16, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||