Atmosphere/atmosphere — Issue #38: Glassfish 3.1.1 invalid connection header
Author: sahlex
Created: 2011-10-12 12:18:19+00:00
State: open

Hi.

I use the atmosphere-0.8.0-R1 implementation with glassfish 3.1.1 (build 12). When connecting from FF 7 using websockets I get the following exception:

[#|2011-10-12T14:10:53.399+0200|SEVERE|glassfish3.1.1|websocket|_ThreadID=18;_ThreadName=Thread-3;|Invalid Connection header returned: 'keep-alive, Upgrade'
com.sun.grizzly.websockets.HandshakeException: Invalid Connection header returned: 'keep-alive, Upgrade'
at com.sun.grizzly.websockets.ServerHandShake.checkForHeader(ServerHandShake.java:84)
at com.sun.grizzly.websockets.ServerHandShake.(ServerHandShake.java:64)
at com.sun.grizzly.websockets.ServerNetworkHandler.handshake(ServerNetworkHandler.java:95)
at com.sun.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:136)
at com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:52)
at com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171)
at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143)
at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:94)
at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193)
at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175)
at com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145)
at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:204)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]

With 0.7.2 atmosphere doesn't even see the incoming connection.
Did I miss something?

Best regards,

Alexander.