1. Bertrand Goetzmann
  2. grails-atmosphere-plugin
  3. Issues
Issue #10 new

Problem with Jetty and Atmosphere plugins

Micheal Swiggs
created an issue

Hey,

I'm trying to get the event-push plugin to work. It works for the tomcat server although websockets fail and communication is via comet. Once I install the jetty plugin the server is able to receive client events, but the client is unable to receive server events. The log files seem to suggest that this is an issue with Atmosphere/Jetty. Any help or pointers would be appreciated.

javascript logs

Unexpected response code: 501 :8080:1
Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). jquery.atmosphere.js:2390
Websocket closed, wasClean: false jquery.atmosphere.js:2390
Websocket failed. Downgrading to Comet and resending jquery.atmosphere.js:2390

Server logs

2012-11-18 09:26:38,438 [qtp31415839-47 - /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo] WARN  servlet.ServletHandler  - Error for /tester/g-eventsbus/eventsbus
Message: org.eclipse.jetty.server.Request.isAsyncStarted()Z
    Line | Method
->>  768 | isAsyncStarted in org.atmosphere.cpr.AtmosphereRequest
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    136 | suspend        in org.atmosphere.container.Servlet30CometSupport
|    103 | service . . .  in     ''
|   1293 | doCometSupport in org.atmosphere.cpr.AtmosphereFramework
|    293 | doPost . . . . in org.atmosphere.cpr.AtmosphereServlet
|    279 | doGet          in     ''
|    565 | handle . . . . in org.eclipse.jetty.servlet.ServletHolder
|   1360 | doFilter       in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|   1331 | doFilter . . . in     ''
|    477 | doHandle       in org.eclipse.jetty.servlet.ServletHandler
|    119 | handle . . . . in org.eclipse.jetty.server.handler.ScopedHandler
|    521 | handle         in org.eclipse.jetty.security.SecurityHandler
|    227 | doHandle . . . in org.eclipse.jetty.server.session.SessionHandler
|   1031 | doHandle       in org.eclipse.jetty.server.handler.ContextHandler
|    406 | doScope . . .  in org.eclipse.jetty.servlet.ServletHandler
|    186 | doScope        in org.eclipse.jetty.server.session.SessionHandler
|    965 | doScope . . .  in org.eclipse.jetty.server.handler.ContextHandler
|    117 | handle         in org.eclipse.jetty.server.handler.ScopedHandler
|    111 | handle . . . . in org.eclipse.jetty.server.handler.HandlerWrapper
|    345 | handle         in org.eclipse.jetty.server.Server
|    449 | handleRequest  in org.eclipse.jetty.server.AbstractHttpConnection
|    910 | headerComplete in org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler
|    634 | parseNext . .  in org.eclipse.jetty.http.HttpParser
|    230 | parseAvailable in     ''
|     76 | handle . . . . in org.eclipse.jetty.server.AsyncHttpConnection
|    609 | handle         in org.eclipse.jetty.io.nio.SelectChannelEndPoint
|     45 | run . . . . .  in org.eclipse.jetty.io.nio.SelectChannelEndPoint$1
|    599 | runJob         in org.eclipse.jetty.util.thread.QueuedThreadPool
|    534 | run . . . . .  in org.eclipse.jetty.util.thread.QueuedThreadPool$3
^    722 | run            in java.lang.Thread
2012-11-18 09:26:38,443 [qtp31415839-47 - /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo] DEBUG servlet.ServletHandler  - (GET /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo)@15217309 org.eclipse.jetty.server.Request@e8329d
2012-11-18 09:26:38,444 [qtp31415839-47 - /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo] DEBUG servlet.ServletHandler  - Response already committed for handling 
Message: org.eclipse.jetty.server.Request.isAsyncStarted()Z
    Line | Method
->>  768 | isAsyncStarted in org.atmosphere.cpr.AtmosphereRequest
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    136 | suspend        in org.atmosphere.container.Servlet30CometSupport
|    103 | service . . .  in     ''
|   1293 | doCometSupport in org.atmosphere.cpr.AtmosphereFramework
|    293 | doPost . . . . in org.atmosphere.cpr.AtmosphereServlet
|    279 | doGet          in     ''
|    565 | handle . . . . in org.eclipse.jetty.servlet.ServletHolder
|   1360 | doFilter       in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|   1331 | doFilter . . . in     ''
|    477 | doHandle       in org.eclipse.jetty.servlet.ServletHandler
|    119 | handle . . . . in org.eclipse.jetty.server.handler.ScopedHandler
|    521 | handle         in org.eclipse.jetty.security.SecurityHandler
|    227 | doHandle . . . in org.eclipse.jetty.server.session.SessionHandler
|   1031 | doHandle       in org.eclipse.jetty.server.handler.ContextHandler
|    406 | doScope . . .  in org.eclipse.jetty.servlet.ServletHandler
|    186 | doScope        in org.eclipse.jetty.server.session.SessionHandler
|    965 | doScope . . .  in org.eclipse.jetty.server.handler.ContextHandler
|    117 | handle         in org.eclipse.jetty.server.handler.ScopedHandler
|    111 | handle . . . . in org.eclipse.jetty.server.handler.HandlerWrapper
|    345 | handle         in org.eclipse.jetty.server.Server
|    449 | handleRequest  in org.eclipse.jetty.server.AbstractHttpConnection
|    910 | headerComplete in org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler
|    634 | parseNext . .  in org.eclipse.jetty.http.HttpParser
|    230 | parseAvailable in     ''
|     76 | handle . . . . in org.eclipse.jetty.server.AsyncHttpConnection
|    609 | handle         in org.eclipse.jetty.io.nio.SelectChannelEndPoint
|     45 | run . . . . .  in org.eclipse.jetty.io.nio.SelectChannelEndPoint$1
|    599 | runJob         in org.eclipse.jetty.util.thread.QueuedThreadPool
|    534 | run . . . . .  in org.eclipse.jetty.util.thread.QueuedThreadPool$3
^    722 | run            in java.lang.Thread
2012-11-18 09:26:42,464 [qtp31415839-44 - /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo] WARN  servlet.ServletHandler  - Error for /tester/g-eventsbus/eventsbus
Message: org.eclipse.jetty.server.Request.isAsyncStarted()Z
    Line | Method
->>  768 | isAsyncStarted in org.atmosphere.cpr.AtmosphereRequest
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    136 | suspend        in org.atmosphere.container.Servlet30CometSupport
|    103 | service . . .  in     ''
|   1293 | doCometSupport in org.atmosphere.cpr.AtmosphereFramework
|    293 | doPost . . . . in org.atmosphere.cpr.AtmosphereServlet
|    279 | doGet          in     ''
|    565 | handle . . . . in org.eclipse.jetty.servlet.ServletHolder
|   1360 | doFilter       in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|   1331 | doFilter . . . in     ''
|    477 | doHandle       in org.eclipse.jetty.servlet.ServletHandler
|    119 | handle . . . . in org.eclipse.jetty.server.handler.ScopedHandler
|    521 | handle         in org.eclipse.jetty.security.SecurityHandler
|    227 | doHandle . . . in org.eclipse.jetty.server.session.SessionHandler
|   1031 | doHandle       in org.eclipse.jetty.server.handler.ContextHandler
|    406 | doScope . . .  in org.eclipse.jetty.servlet.ServletHandler
|    186 | doScope        in org.eclipse.jetty.server.session.SessionHandler
|    965 | doScope . . .  in org.eclipse.jetty.server.handler.ContextHandler
|    117 | handle         in org.eclipse.jetty.server.handler.ScopedHandler
|    111 | handle . . . . in org.eclipse.jetty.server.handler.HandlerWrapper
|    345 | handle         in org.eclipse.jetty.server.Server
|    449 | handleRequest  in org.eclipse.jetty.server.AbstractHttpConnection
|    910 | headerComplete in org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler
|    634 | parseNext . .  in org.eclipse.jetty.http.HttpParser
|    230 | parseAvailable in     ''
|     76 | handle . . . . in org.eclipse.jetty.server.AsyncHttpConnection
|    609 | handle         in org.eclipse.jetty.io.nio.SelectChannelEndPoint
|     45 | run . . . . .  in org.eclipse.jetty.io.nio.SelectChannelEndPoint$1
|    599 | runJob         in org.eclipse.jetty.util.thread.QueuedThreadPool
|    534 | run . . . . .  in org.eclipse.jetty.util.thread.QueuedThreadPool$3
^    722 | run            in java.lang.Thread
2012-11-18 09:26:42,470 [qtp31415839-44 - /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo] DEBUG servlet.ServletHandler  - (GET /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo)@6314852 org.eclipse.jetty.server.Request@605b64
2012-11-18 09:26:42,471 [qtp31415839-44 - /tester/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=sse&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus%2CsavedTodo] DEBUG servlet.ServletHandler  - Response already committed for handling 
Message: org.eclipse.jetty.server.Request.isAsyncStarted()Z
    Line | Method
->>  768 | isAsyncStarted in org.atmosphere.cpr.AtmosphereRequest
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    136 | suspend        in org.atmosphere.container.Servlet30CometSupport
|    103 | service . . .  in     ''
|   1293 | doCometSupport in org.atmosphere.cpr.AtmosphereFramework
|    293 | doPost . . . . in org.atmosphere.cpr.AtmosphereServlet
|    279 | doGet          in     ''
|    565 | handle . . . . in org.eclipse.jetty.servlet.ServletHolder
|   1360 | doFilter       in org.eclipse.jetty.servlet.ServletHandler$CachedChain
|   1331 | doFilter . . . in     ''
|    477 | doHandle       in org.eclipse.jetty.servlet.ServletHandler
|    119 | handle . . . . in org.eclipse.jetty.server.handler.ScopedHandler
|    521 | handle         in org.eclipse.jetty.security.SecurityHandler
|    227 | doHandle . . . in org.eclipse.jetty.server.session.SessionHandler
|   1031 | doHandle       in org.eclipse.jetty.server.handler.ContextHandler
|    406 | doScope . . .  in org.eclipse.jetty.servlet.ServletHandler
|    186 | doScope        in org.eclipse.jetty.server.session.SessionHandler
|    965 | doScope . . .  in org.eclipse.jetty.server.handler.ContextHandler
|    117 | handle         in org.eclipse.jetty.server.handler.ScopedHandler
|    111 | handle . . . . in org.eclipse.jetty.server.handler.HandlerWrapper
|    345 | handle         in org.eclipse.jetty.server.Server
|    449 | handleRequest  in org.eclipse.jetty.server.AbstractHttpConnection
|    910 | headerComplete in org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler
|    634 | parseNext . .  in org.eclipse.jetty.http.HttpParser
|    230 | parseAvailable in     ''
|     76 | handle . . . . in org.eclipse.jetty.server.AsyncHttpConnection
|    609 | handle         in org.eclipse.jetty.io.nio.SelectChannelEndPoint
|     45 | run . . . . .  in org.eclipse.jetty.io.nio.SelectChannelEndPoint$1
|    599 | runJob         in org.eclipse.jetty.util.thread.QueuedThreadPool
|    534 | run . . . . .  in org.eclipse.jetty.util.thread.QueuedThreadPool$3
^    722 | run            in java.lang.Thread

Comments (0)

  1. Log in to comment