users@glassfish.java.net

JSR-356 with 4.0.73 not working

From: <forums_at_java.net>
Date: Thu, 7 Mar 2013 21:31:37 -0600 (CST)

Hello, I try to do my first steps with JSR-356 (WebSocket) but fail in
Glassfish. Here are the errors (actually warnings) that I get: When invoking
the WebService: [#|2013-03-07T21:54:29.323+0100|WARNING|glassfish
4.0|org.glassfish.grizzly.filterchain.DefaultFilterChain|_ThreadID=20;_ThreadName=http-listener-1(4);_TimeMillis=1362689669323;_LevelValue=900;|Exception
during FilterChain execution java.lang.NullPointerException When loading the
web app with the WebService:
[#|2013-03-07T21:52:23.190+0100|WARNING|glassfish
4.0|javax.enterprise.system.tools.admin.security.authorization|_ThreadID=82;_ThreadName=admin-listener(3);_TimeMillis=1362689543190;_LevelValue=900;|org.glassfish.deployment.admin.DeployCommand
java.lang.IllegalArgumentException: subject
[#|2013-03-07T21:52:23.208+0100|WARNING|glassfish
4.0|javax.enterprise.system.tools.admin.security.authorization|_ThreadID=82;_ThreadName=admin-listener(3);_TimeMillis=1362689543208;_LevelValue=900;|org.glassfish.deployment.admin.UndeployCommand
java.lang.IllegalArgumentException: subject Here is the WebSocket service I
have written: @ServerEndpoint(value="/ws") public class CWSHandler { @OnOpen
public void open(Session S) { System.out.println("### NEW CONNECTION OPENED
###"); } @OnMessage public void process(ByteBuffer Data, Session S) {
System.out.println("### GOT MESSAGE ###"); } @OnError public void
error(Session S, Throwable Cause) { System.out.println("### HAVE ERROR ###");
if (null != Cause) { Cause.printStackTrace(); } } } And here is the web.xml
file: Archetype Created Web Application Glassfish is in its standard
configuration. Do I have to setup something there to get the WebSocket
running? Thanks Bjoern

--
[Message sent by forum member 'bjoernwuest']
View Post: http://forums.java.net/node/895525