使用 CF8 重新编译后,remoteObject 失败
我收到了一个最初使用 Flex3 和 CF7 构建和编译的 Flex 项目。 我的设置是 Flex3 和 CF8。 当我最初拉动项目时,一切工作正常,但一旦重新编译,对 CFC 的远程调用就开始失败。 我使用 Charles Web Proxy 调试器并发现故障似乎是从 flex2gateway 开始的。 我仔细检查以确保 flex2gateway 可以访问,并且它在我的项目根目录和本地主机上安装的 CF8 上运行良好。 我还仔细检查以确保我的项目设置指示 Flex 编译器引用我的 CF8 wwwroot 的 services-config.xml。 据我所知,我的所有设置都是正确的。 所以,不用说,我完全不知所措。 以前有其他人遇到过这个问题吗?
谢谢, ——安妮
I've been handed a Flex project that was originally built and compiled using Flex3 and CF7. My setup is Flex3 with CF8. Everything works fine when I initially pull the project over but as soon as I recompile, remote calls to the CFCs begin to fail. I used Charles Web Proxy debugger and discovered that the failure appears to begin with the flex2gateway. I double checked to make sure the flex2gateway is accessible and it's working fine on my CF8 install from both my project root and localhost. I also double checked to make sure that my project settings directed the Flex Compiler to reference my CF8 wwwroot for the services-config.xml. As far as I can tell, all of my settings are correct. So, needless to say, I'm at a complete loss. Has anyone else encountered this problem before?
Thanks,
--Anne
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上没有抛出任何错误,这真的很奇怪。 然而,经过一些进一步的测试和实验,我确实发现了一些相当有趣的东西。 我继续创建了一个新项目,其中 bin-debug 文件全部输出到 Web 根目录。 当尝试使用该设置调用 CFC 时,它运行良好,这有点奇怪。 一旦我开始将其设置为与项目相同的文件结构,它就停止连接。 项目的文件结构如下:
基于此,我的想法是,由于某种原因,它没有在服务器根目录中查找 com.Test.Test,而是只是在 bin-debug 中查找。 那有意义吗? 令人抓狂的是完全没有错误。
——安妮
Actually no errors are getting thrown which is really weird. However, after some further testing and experimentation, I did find something rather interesting. I went ahead and created a new project where the bin-debug files were all output to the web root. When attempting to call a CFC with that setup, it worked fine which is kind of strange. As soon as I started to set it up in the same file structure as the project, it stopped connecting. The file structure of the project is as follows:
Based on this, my thought is that for some reason it's not looking to the server root for com.Test.Test and is instead just looking within bin-debug. Does that make sense? What's maddening is the utter lack of errors.
--Anne
在尝试了比我应该花的时间更长的时间之后,我决定使用 JSON 进行远程处理。 这主要是因为 JSON 使调试时更容易了解幕后发生的情况。 谢谢大家的帮助。
——安妮
After toying with this for considerably longer than I ever should have, I've decided to use JSON for remoting instead. This is mainly because JSON makes it considerably easier to find out what's going on under the covers when debugging. Thanks for your help everyone.
--Anne