javaee / grizzly

Writing scalable server applications in the Java™ programming language has always been difficult. Before the advent of the Java New I/O API (NIO), thread management issues made it impossible for a server to scale to thousands of users. The Grizzly NIO framework has been designed to help developers to take advantage of the Java™ NIO API.
https://javaee.github.io/grizzly/
Other
221 stars 60 forks source link

Cannot cast WorkerThreadImpl to HttpWorkerThread #384

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 15 years ago

When I turn on the testLoad in extras/coemetd-client/src/test/java/com/sun/grizzly/cometd/client/BayeuxClientLoadTest.testLoad(), I got the following exception. Per discussion with JeanFrancois, we will file an issue for this.

java.lang.ClassCastException: com.sun.grizzly.util.WorkerThreadImpl cannot be cast to com.sun.grizzly.http.HttpWorkerThread at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:112) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637)

Environment

Operating System: Mac OS X Platform: All

Affected Versions

[1.9.22]

glassfishrobot commented 15 years ago

Reported by swchan2@java.net

glassfishrobot commented 15 years ago

jfarcand@java.net said: I've filled an issue also

glassfishrobot commented 15 years ago

Was assigned to grizzly-issues

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA GRIZZLY-384

glassfishrobot commented 14 years ago

Marked as duplicate on Wednesday, December 16th 2009, 6:14:16 pm