Grails 2.0,Atmosphere-Plugin和WebSockets

时间:2011-11-24 16:28:18

标签: grails websocket atmosphere grails-2.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

对于什么可能是rpoblem的任何建议都非常感谢。祝福彼得,瑞士

1 个答案:

答案 0 :(得分:0)

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