users@grizzly.java.net

JavaScript and Grizzly 2.1 websocket issue

From: <kristian.jaksch_at_gmail.com>
Date: Wed, 4 May 2011 08:42:36 +0000 (GMT)

A couple of weeks ago I downloaded the Grizzly 2.0 jars and tried out
the websocket sample. Everything worked as expected.

Now I downloaded the Grizzly 2.1 (which should support the 06 websocket
draft) and tried the websocket
"org.glassfish.grizzly.samples.websockets". The problem is now I cannot
get it to work with the same JavaScript client anymore. I've tried it
with Chrome, Firefox 4 and the latest Chromium build but it doesn't
work.

I can see that I hit a breakpoint in the
"isApplicationRequest()"-method on the server side when the Websocket
is created on client side but after that the websocket does not open
and when I try to send a message with "Websocket.send()" I get a
"INVALID_STATE_ERR: DOM Exception 11" when using Chrome.

Can anyone say what's wrong based on this information?

Thanks for help!