使用 CF8 重新编译后,remoteObject 失败

发布于 2024-07-11 05:43:58 字数 373 浏览 9 评论 0原文

我收到了一个最初使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

还给你自由 2024-07-18 05:43:58

实际上没有抛出任何错误,这真的很奇怪。 然而,经过一些进一步的测试和实验,我确实发现了一些相当有趣的东西。 我继续创建了一个新项目,其中 bin-debug 文件全部输出到 Web 根目录。 当尝试使用该设置调用 CFC 时,它运行良好,这有点奇怪。 一旦我开始将其设置为与项目相同的文件结构,它就停止连接。 项目的文件结构如下:

  • _flash
    • 主要
    • bin 调试
    • 来源
  • com
    • 测试
      • 测试.cfc
  • index.cfm(这与通常在 bin-debug 中生成的 html 包装器相同。我们将它放在根目录中,以便我们可以根据我们所在的服务器提取发布版本或调试版本)当时正在使用。)

基于此,我的想法是,由于某种原因,它没有在服务器根目录中查找 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:

  • _flash
    • main
    • bin-debug
    • libs
    • src
  • com
    • Test
      • Test.cfc
  • index.cfm (this is the same as the html wrapper that's usually generated in bin-debug. We have it in the root so that we can pull either the release or debug versions depending on which server we're using at the time.)

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

源来凯始玺欢你 2024-07-18 05:43:58

在尝试了比我应该花的时间更长的时间之后,我决定使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文