Channel.Ping.Failed 错误检测到重复的基于 HTTP 的 FlexSessions 根本原因是什么?

发布于 2024-10-04 08:29:58 字数 1064 浏览 2 评论 0原文

你好 我从此处下载了 Cairngorm3 简单示例应用程序。 有几个步骤。 a) 下载服务器端 zip。它包含一个 PDF,指导如何启动 HSQLDB 数据库并运行 Tomcat 实例(我使用了 catalina.sh start)。 b) 使用 Subversion 查看源代码,并将其加载到 Flashbuilder 4 中。(您需要 Flex 3.4 SDK) 当我运行该应用程序(用 Flex 编写的类似 Outlook 的应用程序)时,我在尝试保存联系人时遇到了问题。我假设它是在远程对象调用上。 但我得到这个:

发送失败 故障代码:Client.Error.MessageSend 故障字符串:'发送失败' 故障详细信息:'Channel.Ping.Failed 错误 检测到重复的基于 HTTP 的 FlexSession,通常是由于远程主机禁用会话 cookie。必须启用会话 cookie 才能正确管理客户端连接。 url: 'http://localhost:8400/messagebroker/amf;jsessionid=5765DDDB6E2D54BD03D3E636B0E8C03E'''

我想知道这是否是您需要在 services-config.xml 中调整的内容? 位于 flex-frameworks/tomcat/webapps/ROOT/WEB-INF/flex 文件夹中(flex-frameworks 来自服务器端 zip 下载:

有人有任何想法吗? 这是克里斯托夫·科恩雷茨的宝贝。

随后我还发现了 Alexander Glosband 的博客文章,但无法从中确定,什么你需要做一个解决办法。即这是可配置的吗?

一致重现错误的方法是尝试从应用程序激活网络摄像头。然后,不要单击“接受”,而是重新加载屏幕。然后,当您在随后授予相机访问权限后尝试拍照时,您会收到重复会话错误。 我认为与相机相关的代码存在问题,无法正确清理自身,会话可能没有正确清理。

Hi
I've downloaded the Cairngorm3 Simple Sample Application from here.
There's a few steps.
a) Download the server-side zip. It contains a PDF instructing how to start a HSQLDB database and get a Tomcat instance up an running (I used catalina.sh start).
b) Check out the source with Subversion, and load it up into Flashbuilder 4. (You need Flex 3.4 SDK)
When I run the app (an Outlook like app written in Flex), I have issues at the point I try and save a contact. I'm assuming it's on a remoteobject call.
But it I get this:

Send failed
faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Ping.Failed error Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly. url: 'http://localhost:8400/messagebroker/amf;jsessionid=5765DDDB6E2D54BD03D3E636B0E8C03E'''

I'm wondering if this is something you need to tweak in services-config.xml?
Located in flex-frameworks/tomcat/webapps/ROOT/WEB-INF/flex folder (flex-frameworks comes from the server-side zip download:

Anyone got any ideas?
This is Christophe Coenraets baby.

I also subsequently found a blog post by Alexander Glosband, but couldn't ascertain from it, what you need to do as a work around. i.e. Is this something that is configurable?

The way to reproduce the error consistently is to try and activate the web camera from the app. Then instead of clicking accept, reload the screen. Then when you try and take a photo after subsequently granting access to camera, you get the duplicate session error.
I think there is an issue with the code pertaining to the Camera, that's not cleaning up after itself correctly, the session is probably not being tidied up correctly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

我ぃ本無心為│何有愛 2024-10-11 08:29:58

你是对的,问题来自 services-config.xml。将您的网址从 更改为

http://localhost:8400/messagebroker/amf

/messagebroker/amf

从这里找到了解决方案 发送失败错误

“编译器将通道、端点和目标嵌入到 SWF 中”视频讲述。

You are right, problem comes from services-config.xml. Change your url from

http://localhost:8400/messagebroker/amf

to

/messagebroker/amf

I found solution from here send failed error

"Compiler EMBEDS channels, endpoints and destinations into SWF" video tells.

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