users@glassfish.java.net

Re: WebSockets returning: Response code was not 101: 405

From: Justin Lee <justin.d.lee_at_oracle.com>
Date: Thu, 07 Jul 2011 09:24:46 -0400

Did you enable websockets on that listener?

On 7/7/11 4:37 AM, forums_at_java.net wrote:
> Hi,
>
> I have moved to GlassFish 3.1.1 b09 which has Grizzly 1.9.36 to test the
> websocket support there.
>
> I deployed the same application that I had on GlassFish 3.1 b43 (after
> removing some now unnecessary Exception-catches).
>
> Now I am getting in the client app this IOException: "Response code
> was not
> 101: 405", but the application just runs smoothly and I get the excepted
> results.
>
> Can I ignore this Exception or is there something I need to do to get
> rid of
> it?
>
> The exception is occuring:
>
> In my code:
>
> new ClientWebSocket("wss://localhost:8181/WebSocketServer/websocket",
> myListener);
>
> In following the grizzly code in:
>
> ClientHandShake.validateServerResponse(headers);
>
> Thanks in advance!
>
> Regards
>
>
> --
>
> [Message sent by forum member 'MohamzJava']
>
> View Post: http://forums.java.net/node/819491
>
>