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
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=print&displayFullThread=true <http://forums.adobe.com/thread/541674?decorator=print&displayFullThread=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
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: 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
> 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 Thu, Aug 19, 2010 at 9:30 PM, Mary Jo Sminkey wrote: > > So any clue how to disable it in this situation?? > > Does flex4 still have channel config and remoting config? If so could you post them? Your communication channels should be listed there I think.
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. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mary Jo Sminkey Sent: Thursday, August 19, 2010 3:30 PM To: flexcoders@yahoogroups.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=print&displayFullThread=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 -- 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
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=print&displayFullThread=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
Okay in a default apache install there is a request log. Take a look at that when you see the error on screen and make sure theres no lines ending in 500 (most lines should be 100, 200) Charles proxy is used for debugging what data is sent over the wire via amf. Regards, Wesley On Thu, Aug 19, 2010 at 8:34 PM, Mary Jo Sminkey wrote: > > > 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 > > > >
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
I think Charles Proxy may be useful for you to diagnose these problems. Also take a look at your server log. What server technology are you using? PHP? Apache? Generally when we see these types of fault they appear as a 500 response from the server. Have you stepped thorough your server side code. Also we have seen intermittant errors in Internet explorer that were due to a badly configured https remote connection. Note I've no solutions for you I'm just saying some of the stuff you can look at. Regards, Wesley Acheson On Thu, Aug 19, 2010 at 7:12 PM, Mary Jo Sminkey wrote: > > > > 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
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
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. HTH. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of happy dog owner Sent: Wednesday, August 18, 2010 9:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex2gateway error Hi all, I am working on my first real Flex application, using the latest ColdFusion 9.01 server as a backend, Flex 4 using Flash Builder Standard. Running on Windows on Apache. Everything seems to work fine but then randomly (as far as I can tell) I'll start getting those flex2gateway errors: [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost/flex2gateway/'"] Everything I've read on this list and elsewhere refers to this error appearing when the gateway isn't working...but it seems to be for me. When I manually call the URL above (http://localhost/flex2gateway/) I get the whitepage that is expected (I double-checked the headers and they do give me 200 response). Once this error appears I have a VERY hard time getting rid of it and getting my application to run again. I've tried restarting Apache, ColdFusion, even rebooting, I've tried rebuilding the project, I've tried manually setting the gateway in my remote object tags. Nothing seems to work, but invariably it *will* go away for a time, everything will run correctly...and then boom, it shows up again and I'm stuck again. But I have yet to figure out the pattern for when it occurs. Any ideas?? I'm really frustrated trying to figure this out and what it causing it. -- Mary Jo Sminkey Author, CFWebstore ColdFusion Ecommerce
Re: [flexcoders] flex2gateway Error
No it is loaded it says MessageBrokerServlet:init - Original Message From: João Fernandes <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, July 7, 2008 3:07:28 PM Subject: Re: [flexcoders] flex2gateway Error If you try to make your app to load directly from the ColdFusion instance instead of Apache, PHP wouldn't be able to interfere in the process. Check server logs to see if there was any problem to load the MessageBrokerServle t. -- João Fernandes http://www.onflexwi thcf.org http://www.riapt. org Portugal Adobe User Group (http://aug.riapt. org)
Re: [flexcoders] flex2gateway Error
If you try to make your app to load directly from the ColdFusion instance instead of Apache, PHP wouldn't be able to interfere in the process. Check server logs to see if there was any problem to load the MessageBrokerServlet. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
Re: [flexcoders] flex2gateway Error
Do you think PHP is blocking it? - Original Message From: Sherif Abdou <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, July 7, 2008 2:04:31 PM Subject: Re: [flexcoders] flex2gateway Error Yes I Do. - Original Message From: João Fernandes To: [EMAIL PROTECTED] ups.com Sent: Monday, July 7, 2008 1:33:26 PM Subject: Re: [flexcoders] flex2gateway Error check if in your web.xml ( under {cfusionInstance} /WEB-INF/ ) you have the flex2gateway mapping listed MessageBrokerSer vlet /flex2gateway/ * -- João Fernandes http://www.onflexwi thcf.org http://www.riapt. org Portugal Adobe User Group (http://aug.riapt. org)
Re: [flexcoders] flex2gateway Error
Yes I Do. - Original Message From: João Fernandes <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, July 7, 2008 1:33:26 PM Subject: Re: [flexcoders] flex2gateway Error check if in your web.xml ( under {cfusionInstance} /WEB-INF/ ) you have the flex2gateway mapping listed MessageBrokerSer vlet /flex2gateway/ * -- João Fernandes http://www.onflexwi thcf.org http://www.riapt. org Portugal Adobe User Group (http://aug.riapt. org)
Re: [flexcoders] flex2gateway Error
check if in your web.xml ( under {cfusionInstance}/WEB-INF/ ) you have the flex2gateway mapping listed MessageBrokerServlet /flex2gateway/* -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
Re: [flexcoders] flex2gateway Error
Actually, I tried it and no i still get a 404 page Error and it doesnt connect. - Original Message From: Sherif Abdou <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, July 7, 2008 12:14:03 PM Subject: Re: [flexcoders] flex2gateway Error How do I know what the CFServerPortNumber is? THanks - Original Message From: João Fernandes To: [EMAIL PROTECTED] ups.com Sent: Monday, July 7, 2008 12:11:19 PM Subject: Re: [flexcoders] flex2gateway Error Sherif, can you try to point it directly to the cfserver port instead apache port 80? http://mysitename. com:{CFServerPortNu mber}/flex2gatew ay /cfamfpolling and see if it throws the same error? -- João Fernandes http://www.onflexwi thcf.org http://www.riapt. org Portugal Adobe User Group (http://aug.riapt. org)
Re: [flexcoders] flex2gateway Error
How do I know what the CFServerPortNumber is? THanks - Original Message From: João Fernandes <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, July 7, 2008 12:11:19 PM Subject: Re: [flexcoders] flex2gateway Error Sherif, can you try to point it directly to the cfserver port instead apache port 80? http://mysitename. com:{CFServerPortNu mber}/flex2gatew ay /cfamfpolling and see if it throws the same error? -- João Fernandes http://www.onflexwi thcf.org http://www.riapt. org Portugal Adobe User Group (http://aug.riapt. org)
Re: [flexcoders] flex2gateway Error
Sherif, can you try to point it directly to the cfserver port instead apache port 80? http://mysitename. com:{CFServerPortNumber}/flex2gateway/cfamfpolling and see if it throws the same error? -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
RE: [flexcoders] flex2gateway error, Coldfusion and Flex intergration
That '/flex2gateway/index.cfm' path is weird. Have you created a /flex2gateway folder? Can you share your remoteobject definition + your services-config.xml ? João Fernandes From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Justin Chetwynd Sent: sexta-feira, 18 de Agosto de 2006 2:18 To: flexcoders@yahoogroups.com Subject: [flexcoders] flex2gateway error, Coldfusion and Flex intergration I have been trying to integrate a flex application into a Coldfusion application. I first developed a standalone flex application in Flex Builder 2.0, which worked fine. I then imbedded the SWF file into a page on my Coldfusion application and moved the CFC’s into the application. The application runs on another instance of Coldfusion. I have configured the additional compiler arguments in Flex builder 2.0 to point to the new server instance: -services "C:\JRun4\servers\{server name}\cfusion.ear\cfusion.war\WEB-INF\flex\services-config.xml" -locale en_US also I have changed the flex server root: C:\JRun4\servers\{server name}\cfusion.ear\cfusion.war\ All CFC paths have been updated to reflect the new locations. When the app runs the SWF has a button that calls a function of a remote object, which returns a string to be displayed (very simple), but all I get back is an error: fault:Channel.Call.failed faultString: error faultDetail:’NetConnection.Call.Failed: HTTP: Failed’ On the server side I can see the client communicating with the server and then an error is thrown: [Flex] HttpFlexSession has not been registered as a listener in web.xml for this application so no e vents will be dispatched to FlexSessionAttributeListeners or FlexSessionBindingListeners. To correct this, register flex.messaging.HttpFlexSession as a listener in web.xml. 18/08 11:03:08 error No configured channel has an endpoint path '/flex2gateway/index.cfm'. flex.messaging.MessageException: No configured channel has an endpoint path '/flex2gateway/index.cfm '. Can anyone point me in the right direction, maybe some documentation? Thanks, Justin __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___