users@grizzly.java.net

anyone else what to test Grizzly Websockets ?

From: Sebastien Dionne <survivant00_at_gmail.com>
Date: Thu, 8 Apr 2010 20:34:39 -0400

ok.. here my observations so far.


I have the head of grizzly.

revision 4421

.

I was able to log in the chat by disabled comet



her theparams passed to deployer

-a
C:/workspaces/workspace_grizzly/samples/websockets/chat/target/grizzly-websockets-chat.war
--cometEnabled=true


here the cahngse that I made :


 private void configureServer(DeployerConfiguration conf) {
        // comet
        if (conf.cometEnabled) {
            SelectorThread st = ws.getSelectorThread();

            AsyncHandler asyncHandler = new DefaultAsyncHandler();
            //asyncHandler.addAsyncFilter(new
CometAsyncFilter()); // ALWAYS get : left the
chat as soon as I log in.. and nothing happen after that,
            st.setAsyncHandler(asyncHandler);

            st.setEnableAsyncExecution(true);

            st.getAsyncHandler().addAsyncFilter(new WebSocketAsyncFilter());
        }

        if (conf.ajpEnabled) {
            ws.enableProtocol(PROTOCOL.AJP);
        }
    }




with google chrome I ahve that

test: test has joined the chat.

test: lo

test: has left the chat


deployer :
but here the log



2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_15e2ccd attachment:
1270772834046
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=103 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_17b0998
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_15e2ccd attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=102 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_18f51f
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_15e2ccd attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=110 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_12b6c89
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_15e2ccd attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=109 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_1e2befa
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_15e2ccd attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.arp.AsyncProcessorTask doTask
GRAVE: Already Suspended
java.lang.IllegalStateException: Already Suspended
    at com.sun.grizzly.tcp.Response.suspend(Response.java:884)
    at com.sun.grizzly.tcp.Response.suspend(Response.java:856)
    at com.sun.grizzly.tcp.Response.suspend(Response.java:830)
    at com.sun.grizzly.tcp.Response.suspend(Response.java:813)
    at
com.sun.grizzly.websockets.ServerHandShake.prepare(ServerHandShake.java:99)
    at
com.sun.grizzly.websockets.WebSocketEngine.handshake(WebSocketEngine.java:110)
    at
com.sun.grizzly.websockets.WebSocketEngine.getWebSocket(WebSocketEngine.java:57)
    at
com.sun.grizzly.websockets.WebSocketEngine.handle(WebSocketEngine.java:42)
    at
com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:12)
    at
com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:164)
    at
com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:140)
    at
com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:90)
    at com.sun.grizzly.http.TaskBase.run(TaskBase.java:190)
    at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:172)
    at
com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:142)
    at
com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:174)
    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:526)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:507)
    at java.lang.Thread.run(Unknown Source)
2010-04-08 20:27:14 com.sun.grizzly.arp.AsyncProtocolFilter execute
INFO: Processor exception
java.lang.RuntimeException: java.lang.IllegalStateException: Already
Suspended
    at
com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:108)
    at com.sun.grizzly.http.TaskBase.run(TaskBase.java:190)
    at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:172)
    at
com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:142)
    at
com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:174)
    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:526)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:507)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Already Suspended
    at com.sun.grizzly.tcp.Response.suspend(Response.java:884)
    at com.sun.grizzly.tcp.Response.suspend(Response.java:856)
    at com.sun.grizzly.tcp.Response.suspend(Response.java:830)
    at com.sun.grizzly.tcp.Response.suspend(Response.java:813)
    at
com.sun.grizzly.websockets.ServerHandShake.prepare(ServerHandShake.java:99)
    at
com.sun.grizzly.websockets.WebSocketEngine.handshake(WebSocketEngine.java:110)
    at
com.sun.grizzly.websockets.WebSocketEngine.getWebSocket(WebSocketEngine.java:57)
    at
com.sun.grizzly.websockets.WebSocketEngine.handle(WebSocketEngine.java:42)
    at
com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:12)
    at
com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:164)
    at
com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:140)
    at
com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:90)
    ... 14 more
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$SelectionKeyCancelOperation_at_1682598
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_7c3885 attachment: 1270772834299
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=109 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_e53220
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_7c3885 attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=109 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_15c62bc
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_7c3885 attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=109 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_ef83d3
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_7c3885 attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=103 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_b7b3f9
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_7c3885 attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=104 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_88df60
2010-04-08 20:27:14 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_7c3885 attachment:
-9223372036854775808
2010-04-08 20:27:14 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=103 cap=131072]
2010-04-08 20:27:14 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_1318b
2010-04-08 20:27:15 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:15 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:15 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:15 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:15 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:18 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_ACCEPT on sun.nio.ch.SelectionKeyImpl_at_1033a6f attachment: null
2010-04-08 20:27:18 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_d66426 attachment: 1270772838083
2010-04-08 20:27:18 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=198 cap=131072]
2010-04-08 20:27:20 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_50a649
2010-04-08 20:27:20 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_d66426 attachment:
com.sun.grizzly.websockets.WebSocketEngine$1_at_d507e9
2010-04-08 20:27:20 com.sun.grizzly.samples.websockets.ChatApplication login
INFO: ChatApplication.login
2010-04-08 20:27:20 com.sun.grizzly.samples.websockets.ChatApplication
broadcast
INFO: Broadcasting : test has joined the chat.
2010-04-08 20:27:20 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=84 cap=131072]
2010-04-08 20:27:30 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_5bb966 attachment: 1270772835056
2010-04-08 20:27:30 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_1e903d5 attachment:
1270772835057
2010-04-08 20:27:30 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_76e8a7 attachment: 1270772835076
2010-04-08 20:27:30 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_17b6643 attachment:
1270772835057
2010-04-08 20:27:30 com.sun.grizzly.SelectorHandlerRunner dolog
FIN: OP_READ on sun.nio.ch.SelectionKeyImpl_at_faa550 attachment: 1270772835057
2010-04-08 20:27:30 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$SelectionKeyCancelOperation_at_5976c2
2010-04-08 20:27:30 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$SelectionKeyCancelOperation_at_ebcdbb
2010-04-08 20:27:30 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$SelectionKeyCancelOperation_at_10fe2b9
2010-04-08 20:27:30 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$SelectionKeyCancelOperation_at_1ee148b
2010-04-08 20:27:30 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$SelectionKeyCancelOperation_at_186d484
2010-04-08 20:27:47 com.sun.grizzly.samples.websockets.ChatApplication
broadcast
INFO: Broadcasting : lo

2010-04-08 20:27:47 com.sun.grizzly.http.SocketChannelOutputBuffer
flushChannel
LE PLUS FIN: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=67 cap=131072]
2010-04-08 20:27:51 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$RegisterKeyOperation_at_174d93a
2010-04-08 20:27:51 com.sun.grizzly.filter.ReadFilter log
FIN: ReadFilter.execute
java.nio.channels.ClosedChannelException
    at sun.nio.ch.SocketChannelImpl.ensureReadOpen(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
    at com.sun.grizzly.filter.ReadFilter.execute(ReadFilter.java:163)
    at com.sun.grizzly.filter.ReadFilter.execute(ReadFilter.java:105)
    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:526)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:507)
    at java.lang.Thread.run(Unknown Source)
2010-04-08 20:27:51 com.sun.grizzly.TCPSelectorHandler processPendingQueue
LE PLUS FIN: Processing pending task:
com.sun.grizzly.TCPSelectorHandler$SelectionKeyCancelOperation_at_61a907


-- 
-------------
A+
Sébastien.
Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
http://twitter.com/survivant
-- 
-------------
A+
Sébastien.
Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
http://twitter.com/survivant