0

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

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

任何关于可能是什么问题的建议都将受到高度赞赏。最良好的祝愿 Peter, 瑞士

4

1 回答 1

0

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

于 2011-11-24T20:11:24.020 回答