dev@grizzly.java.net

Re: websocket tests failed on Win7

From: Justin Lee <justin.d.lee_at_oracle.com>
Date: Sun, 04 Apr 2010 16:29:35 -0600

Yeah. I've seen that failure intermittently on OS X as well. I think i
know what the problem and the fix are.

On 4/4/10 4:21 PM, Sebastien Dionne wrote:
> I launch the tests twice.. and it failed both times. here the logs
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running TestSuite
> 4-Apr-2010 6:16:37 PM com.sun.grizzly.Controller logVersion
> INFO: Starting Grizzly Framework 1.9.19-SNAPSHOT - Sun Apr 04 18:16:37 EDT
> 2010
> 4-Apr-2010 6:16:39 PM com.sun.grizzly.Controller logVersion
> INFO: Starting Grizzly Framework 1.9.19-SNAPSHOT - Sun Apr 04 18:16:39 EDT
> 2010
> ServerSideTest.asynchronous: message/ms = 21
> 4-Apr-2010 6:16:42 PM com.sun.grizzly.Controller logVersion
> INFO: Starting Grizzly Framework 1.9.19-SNAPSHOT - Sun Apr 04 18:16:42 EDT
> 2010
> 4-Apr-2010 6:16:42 PM com.sun.grizzly.arp.AsyncProcessorTask doTask
> SEVERE: Malformed frame. Missing frame end delimiter: 101
> java.lang.RuntimeException: Malformed frame. Missing frame end delimiter:
> 101
> at com.sun.grizzly.websockets.FrameType$1.unframe(FrameType.java:25)
> at com.sun.grizzly.websockets.DataFrame.<init>(DataFrame.java:19)
> at
> com.sun.grizzly.websockets.BaseWebSocket.unframe(BaseWebSocket.java:1
> 13)
> at
> com.sun.grizzly.websockets.WebSocketEngine.checkBuffered(WebSocketEng
> ine.java:107)
> at
> com.sun.grizzly.websockets.WebSocketEngine.getWebSocket(WebSocketEngi
> ne.java:62)
> at
> com.sun.grizzly.websockets.WebSocketEngine.handle(WebSocketEngine.jav
> a:42)
> at
> com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsy
> ncFilter.java:12)
> at
> com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncEx
> ecutor.java:164)
> at
> com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecut
> or.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.ja
> va:142)
> at
> com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.j
> ava:174)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
> tocolChain.java:135)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
> a:102)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
> a:88)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
> :76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
> ask.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(AbstractThreadP
> ool.java:526)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
> .java:507)
> at java.lang.Thread.run(Thread.java:619)
> 4-Apr-2010 6:16:42 PM com.sun.grizzly.arp.AsyncProtocolFilter execute
> INFO: Processor exception
> java.lang.RuntimeException: java.lang.RuntimeException: Malformed frame.
> Missin
> g frame end delimiter: 101
> 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.ja
> va:142)
> at
> com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.j
> ava:174)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
> tocolChain.java:135)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
> a:102)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
> a:88)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
> :76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
> ask.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(AbstractThreadP
> ool.java:526)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
> .java:507)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.RuntimeException: Malformed frame. Missing frame end
> delim
> iter: 101
> at com.sun.grizzly.websockets.FrameType$1.unframe(FrameType.java:25)
> at com.sun.grizzly.websockets.DataFrame.<init>(DataFrame.java:19)
> at
> com.sun.grizzly.websockets.BaseWebSocket.unframe(BaseWebSocket.java:1
> 13)
> at
> com.sun.grizzly.websockets.WebSocketEngine.checkBuffered(WebSocketEng
> ine.java:107)
> at
> com.sun.grizzly.websockets.WebSocketEngine.getWebSocket(WebSocketEngi
> ne.java:62)
> at
> com.sun.grizzly.websockets.WebSocketEngine.handle(WebSocketEngine.jav
> a:42)
> at
> com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsy
> ncFilter.java:12)
> at
> com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncEx
> ecutor.java:164)
> at
> com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecut
> or.java:140)
> at
> com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java
> :90)
> ... 14 more
> 4-Apr-2010 6:16:43 PM com.sun.grizzly.Controller logVersion
> INFO: Starting Grizzly Framework 1.9.19-SNAPSHOT - Sun Apr 04 18:16:43 EDT
> 2010
> ServerSideTest.synchronous: message/ms = 13
> 4-Apr-2010 6:16:46 PM com.sun.grizzly.Controller logVersion
> INFO: Starting Grizzly Framework 1.9.19-SNAPSHOT - Sun Apr 04 18:16:46 EDT
> 2010
> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.09 sec
> <<< FA
> ILURE!
>
> Results :
>
> Failed tests:
> bigPayload(com.sun.grizzly.websockets.ServerSideTest)
>
> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to
> C:\workspaces\workspace_grizzly\modules\websockets\target\surefi
> re-reports for the individual test results.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7 minutes 19 seconds
> [INFO] Finished at: Sun Apr 04 18:16:47 EDT 2010
> [INFO] Final Memory: 25M/64M
> [INFO]
> ------------------------------------------------------------------------
> C:\workspaces\workspace_grizzly>
>
>