Re: [flexcoders] flex2gateway error
It could very well be that your request response time is exceeding the default time out for Remote Objects, but I'm not sure about app not working **at all** after that. This can create the intermittent behavior you're seeing, depending on load or query response time from the app's database. In AIR this is a real problem because on windows, the request times out at 30 seconds no matter what you do. But you say you're running a Flex app so, you **should** be able to set the requestTimeout on your RemoteObject to a higher value and see a mitigation of the behavior. Thanks for the replywhen no one replied I assumed it's as confusing to the group as it is to me! I'm really at my wits end with this thing. If I had my choice, I'd probably just scrap the whole idea of doing it in Flex for the amount of time and trouble this has been causing me. I don't see that it's a response time issue. I'm still in the testing and development stages so am only at this point using a very small data set to work with (I've already experienced the issues Flex has with large amounts of data over remoting so have at least taken that issue out of the loop until this is solved). Everything including the database is local on my personal workstation so there's virtually no lag at all, I get the error pretty much instantly when the flash component finishes loading. I'm supposed to demo my progress to the client on Monday, and right now I can't even get the flash component to load up because of this error/bug. It's just totally maddening. --- Mary Jo
Re: [flexcoders] flex2gateway error
I think Charles Proxy may be useful for you to diagnose these problems. Okay, not familiar with it, but I'll look into it. Also take a look at your server log. Which one? Nothing appears to get written to any of the CF server logs when I hit the application, I don't see any errors in Apache or any reference at all to the flex2gateway. Are there other logs I should be checking? What server technology are you using? PHP? Apache? ColdFusion 9.01 running on Windows with Apache. Generally when we see these types of fault they appear as a 500 response from the server. Nope, that's what is so weird in my case, if I hit the localhost/flex2gateway manually it returns a normal 200 response. But for some reason, within the Flash component, it can't seem to find it. I've tried a variety of ways of referencing the URL but none seem to work. Have you stepped thorough your server side code. I don't seem to get to the point where the server side remote method even gets called, so not sure what I'd be looking for? The code runs perfectly when this error isn't coming up. Also we have seen intermittant errors in Internet explorer that were due to a badly configured https remote connection. I'm testing mainly in FF, but for kicks I did try it in both IE8 and Chrome and while neither of those browser pop up the error message, execution still halts in the same place where it would be doing the remote call. Note I've no solutions for you I'm just saying some of the stuff you can look at. I appreciate it, but yeah, I've tried a lot of this, and a lot of other suggestions for gateway errors but simply cannot seem to find a solution. I'm using the latest Flash Builder product so I'm wondering if I've managed to hit on some obscure bug that is creating the problem. It does seem that the error *only* starts to come up when I've done a rebuild of the project while developing, but I've yet to figure out what causes it and how to get it to go away again once it happens. I've noticed as well that when I go back into my Flex project settings in FB, they often are changed from what I had previously entered and saved, but correcting them and rebuilding doesn't seem to fix the problem. --- Mary Jo -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] flex2gateway error
On 8/19/2010 2:43 PM, Wesley Acheson wrote: Charles proxy is used for debugging what data is sent over the wire via amf. Okay, downloaded and installed Charles, thanks for the suggestion, looks like a very useful tool. And I found out from it that the problem seems to be that the call to the gateway is using a port that is invalid, it's trying to call it over port 37813. So that seems to be what is causing the problem. I googled the issue with that port and found this post on the Adobe forums: http://forums.adobe.com/thread/541674?decorator=printdisplayFullThread=true Stating that the problem was due to compiling with the Network Monitor turned on. Here's where things get problematic for me. Up until a few weeks ago, I was using the FB Premium demo version. We are *supposed* to get licenses where I work for it, but they seem to be held up so I was able to at least install a license for Standard...which does not include the Network Monitor feature. I know I had it turned onand the error seems to suggest that it's still behaving as if it's turned on...but I can't actually access it due to not having a Premium license. So any clue how to disable it in this situation?? --- Mary Jo
Re: [flexcoders] flex2gateway error
I would think that if you clean your project and re-compile it will remove Network Monitor. Clearing any and all browser caches would be recommended also to ensure you're running the re-compiled version. Oh, I've done many cleans and recompiles trying to get past the error, that doesn't seem to fix it. And yes, have cleared the browser cache as well. I'm thinking I probably will have to just uninstall Flash Builder completely from my machine and reinstall to see if that will fix the problem. Argghhh --- Mary Jo
Re: [flexcoders] flex2gateway error
On 8/19/2010 3:38 PM, Wesley Acheson wrote: Does flex4 still have channel config and remoting config? If so could you post them? Your communication channels should be listed there I think. There doesn't seem to be a channel config, and I'm not seeing anything in the remoting config that would play into this. Perhaps you mean the services config file? That is where I see all the channel definitions, which all look similar to this: endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/; class=coldfusion.flash.messaging.CFAMFEndPoint/ I did one point try manually setting that endpoint to localhost/flex2gateway and restarted the CF server to see if that effected it, but still did get the error. --- Mary Jo
Re: [flexcoders] flex2gateway error
Well, I'm still dead in the water, tried uninstalling and reinstalling Flash Builder to no avail. Tried a couple other things as well that didn't effect it either. The link to the forums that I posted below is a bit hard to follow with the broken English, but they seem to describe their application working when FB is open, and not working when it is closed. Mine is not running regardless of whether it is open or not...and in the debug error message it doesn't show that port address even though the http listener is showing it so I'm not convinced the Network Monitor has anything to do with it. I *do* have a feeling I've hit some kind of FB bug so I may see if we have an Adobe support contract to make use of. If not, I may have to figure out how to compile via the SDK just to verify that the Flash Builder product is the problem. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Mary Jo Sminkey Sent: Thursday, August 19, 2010 3:30 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] flex2gateway error On 8/19/2010 2:43 PM, Wesley Acheson wrote: Charles proxy is used for debugging what data is sent over the wire via amf. Okay, downloaded and installed Charles, thanks for the suggestion, looks like a very useful tool. And I found out from it that the problem seems to be that the call to the gateway is using a port that is invalid, it's trying to call it over port 37813. So that seems to be what is causing the problem. I googled the issue with that port and found this post on the Adobe forums: http://forums.adobe.com/thread/541674?decorator=printdisplayFullThread=true http://forums.adobe.com/thread/541674?decorator=printdisplayFullThread=true Stating that the problem was due to compiling with the Network Monitor turned on. Here's where things get problematic for me. Up until a few weeks ago, I was using the FB Premium demo version. We are *supposed* to get licenses where I work for it, but they seem to be held up so I was able to at least install a license for Standard...which does not include the Network Monitor feature. I know I had it turned onand the error seems to suggest that it's still behaving as if it's turned on...but I can't actually access it due to not having a Premium license. So any clue how to disable it in this situation?? --- Mary Jo
Re: [flexcoders] flex2gateway error
Got it fixed! Found the bug report on the Flex Jira site that included instructions for fixing it. Was indeed the Network Monitor causing the problem. Here's the link in case anyone else runs across this: https://bugs.adobe.com/jira/browse/FB-27235 Thanks for the help in finding this. --- Mary Jo