我试图得到一个示例WebSocket应用程序运行在grails 2.0与jetty 7.5在开发模式。我生成了一个简单的AtmosphereHandler,但是每当我尝试通过WebSocket连接时,我都会得到以下错误消息:
Error 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
对于可能出现的问题,任何建议都是非常感谢的。祝福彼得,瑞士
似乎问题出在Grails Plug In上,因为我在堆栈跟踪中没有看到Atmosphere类。感谢您的投稿https://bitbucket.org/bgoetzmann/grails-atmosphere-plugin/issue/4/grails-20-atmosphere-and-websockets