[Bug 55314] Provide option to allow programmatic deployment of server (WebSocket) endpoint at runtime

2013-07-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55314

--- Comment #2 from Dave Syer  ---
Maybe this is relevant. When I try to add the WsListener to an embedded Tomcat
I get this:

2013-07-27 12:01:16.974 ERROR 31782 --- [ost-startStop-1]
o.a.c.c.C.[Tomcat].[localhost].[/]   : Exception sending context
initialized event to listener instance of class
org.apache.tomcat.websocket.server.WsListener

java.lang.UnsupportedOperationException: Section 4.4 of the Servlet 3.0
specification does not permit this method to be called from a
ServletContextListener that was not defined in web.xml, a web-fragment.xml file
nor annotated with @WebListener
at
org.apache.catalina.core.StandardContext$NoPluggabilityServletContext.addFilter(StandardContext.java:6805)
at
org.apache.tomcat.websocket.server.WsServerContainer.setServletContext(WsServerContainer.java:132)
at org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:131)
at
org.apache.tomcat.websocket.server.WsListener.contextInitialized(WsListener.java:33)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4838)

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55316] New: Ugly error log when WS client diconnects unexpectedly

2013-07-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55316

Bug ID: 55316
   Summary: Ugly error log when WS client diconnects unexpectedly
   Product: Tomcat 8
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
  Assignee: dev@tomcat.apache.org
  Reporter: david_s...@hotmail.com

When a WS browser client disconnects unexpectedly (e.g. in the SNake sample if
the user just closes the browser or loads another page) you get ugle ERROR logs
in the Tomcat server.  E.g.

2013-07-27 12:04:34.424 ERROR 31847 --- [nio-8080-exec-7]
org.apache.tomcat.websocket.WsSession: Failed to send close message to
remote endpoint

java.io.IOException: java.util.concurrent.ExecutionException:
java.io.EOFException
at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessageBlock(WsRemoteEndpointImplBase.java:221)
at
org.apache.tomcat.websocket.WsSession.sendCloseMessage(WsSession.java:466)
at org.apache.tomcat.websocket.WsSession.onClose(WsSession.java:430)
at
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.close(WsHttpUpgradeHandler.java:172)
at
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.access$200(WsHttpUpgradeHandler.java:45)
at
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler$WsReadListener.onDataAvailable(WsHttpUpgradeHandler.java:198)
at
org.apache.coyote.http11.upgrade.AbstractServletInputStream.onDataAvailable(AbstractServletInputStream.java:169)
at
org.apache.coyote.http11.upgrade.AbstractProcessor.upgradeDispatch(AbstractProcessor.java:95)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:630)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1585)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1543)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.util.concurrent.ExecutionException: java.io.EOFException
at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$FutureToSendHandler.get(WsRemoteEndpointImplBase.java:779)
at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessageBlock(WsRemoteEndpointImplBase.java:217)
... 14 common frames omitted
Caused by: java.io.EOFException: null
at
org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.doClose(WsRemoteEndpointImplServer.java:126)
at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.close(WsRemoteEndpointImplBase.java:531)
at
org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.onWritePossible(WsRemoteEndpointImplServer.java:107)
at
org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.doWrite(WsRemoteEndpointImplServer.java:71)
at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:353)
at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:254)
at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessageBlock(WsRemoteEndpointImplBase.java:211)
... 14 common frames omitted


Presumably this is expected to be relatively normal, so I'd expect a lot less
noise (and no ERROR) in the log?

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55316] Ugly error log when WS client disconnects unexpectedly

2013-07-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55316

Dave Syer  changed:

   What|Removed |Added

Summary|Ugly error log when WS  |Ugly error log when WS
   |client diconnects   |client disconnects
   |unexpectedly|unexpectedly

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org