Grails 2.0、Atmosphere-Plugin 和 WebSockets

发布于 2024-12-18 01:08:13 字数 921 浏览 0 评论 0 原文

我正在尝试在开发模式下使用 jetty 7.5 在 grails 2.0 上运行示例 WebSocket 应用程序。我生成了一个简单的 AtmosphereHandler,但每当我尝试通过 WebSocket 连接时,我都会收到以下错误消息:

E

rror 2011-11-24 17:18:32,075 ["http-bio-8080"-exec-4] ERROR [/jet2].[StratosphereServlet]  - Servlet.service() for servlet [StratosphereServlet] in context with path [/jet2] threw exception
Message: null
   Line | Method
->> 197 | upgrade         in org.eclipse.jetty.websocket.WebSocketFactory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   320 | acceptWebSocket in     ''
|    78 | service . . . . in org.eclipse.jetty.websocket.WebSocketServlet
|    26 | doFilter        in org.grails.plugin.resource.DevModeSanityFilter
|   886 | runTask . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run             in     ''
^   619 | run . . . . . . in java.lang.Thread

非常感谢有关可能出现问题的任何建议。最良好的祝愿彼得,瑞士

I am trying to get a sample WebSocket app running on grails 2.0 with jetty 7.5 in dev mode. I generated a simple AtmosphereHandler, but whenever I try to connect via a WebSocket I get the following error message:

E

rror 2011-11-24 17:18:32,075 ["http-bio-8080"-exec-4] ERROR [/jet2].[StratosphereServlet]  - Servlet.service() for servlet [StratosphereServlet] in context with path [/jet2] threw exception
Message: null
   Line | Method
->> 197 | upgrade         in org.eclipse.jetty.websocket.WebSocketFactory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   320 | acceptWebSocket in     ''
|    78 | service . . . . in org.eclipse.jetty.websocket.WebSocketServlet
|    26 | doFilter        in org.grails.plugin.resource.DevModeSanityFilter
|   886 | runTask . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run             in     ''
^   619 | run . . . . . . in java.lang.Thread

Any suggestions as to what might be the rpoblem are highly appreciated. Best wishes Peter, Switzerland

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

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

发布评论

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

评论(1

眸中客 2024-12-25 01:08:13

问题似乎出在 Grails 插件上,因为我在堆栈跟踪中没有看到 Atmosphere 类。感谢您填写问题
https://bitbucket.org/bgoetzmann/grails-atmosphere-plugin/issue/4/grails-20-atmosphere-and-websockets

it seems the issue is with the Grails Plug In as I don't see Atmosphere classes in the stack trace. Thanks for filling the issue
https://bitbucket.org/bgoetzmann/grails-atmosphere-plugin/issue/4/grails-20-atmosphere-and-websockets

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