Flex RemoteObject 间歇性无法调用 CFC
我有一个 Flex 应用程序,它使用 Flash Remoting 和 RemoteObject 从 ColdFusion CFC 中提取数据。大约 75% 的时间它可以工作,但其他时候我使用 Charles(一种调试工具)收到一条消息,显示错误字符串 =“无法调用 CFC”。故障代码 =“服务器.处理”。
这是我的 RemoteObject:
<mx:RemoteObject id="carsSvc" destination="ColdFusion" source="ca.sqmIDash.cfc.sqmIdash">
<mx:method name="getCARs" result="resultHandler(event)"/>
</mx:RemoteObject>
在我们的网络场上设置的服务器将使用负载平衡。我不确定这是否导致了问题。可能不是,但这是一个想法。
任何帮助表示赞赏!
I have a Flex app that uses Flash Remoting and the RemoteObject to pull data from a ColdFusion CFC. About 75% of the time it works, but the other times I get a message using Charles (a debugging tool) that says faultString = "Unable to Invoke CFC". FaultCode = "Server.Processing".
Here's my RemoteObject:
<mx:RemoteObject id="carsSvc" destination="ColdFusion" source="ca.sqmIDash.cfc.sqmIdash">
<mx:method name="getCARs" result="resultHandler(event)"/>
</mx:RemoteObject>
The server set up on our web farm is to use load balancing. I'm not sure if this is causing the problem or not. Probably not, but it's a thought.
Any help is appreciated!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,您遇到的服务器问题完全与 Flex 无关。我会研究负载均衡器和/或机器在 25% 的时间收到错误时正在执行的操作。
我还会在服务器上添加一些错误检查,以便通过电子邮件向您发送相关错误。 (也许在 onError Application.cfc 中)这可以帮助您诊断服务器端代码中是否存在错误。
我在你的问题中没有看到 RemoteObject,即使你有一行写着“这是我的 RemoteObject”
It sounds to me like you're having server issues completely independent of Flex. I'd look into the load balancer and/or what the machine re doing that 25% of the time you're receiving the error.
I'd also add some error checking on the server to e-mail you the relevant errors. ( Perhaps in the onError Application.cfc ) That may help you diagnose if there is a bug in your server side code.
I do not see a RemoteObject in your question, even though you have a line that says "here is my RemoteObject"