Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360747

Summary: Current Connection not set for BIO connector.
Product: [RT] Jetty Reporter: Greg Wilkins <gregw>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.5.1   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Greg Wilkins CLA 2011-10-12 20:41:50 EDT
the current connection appears not to be set by the BIO connector.  Also need to check if Websockets works correctly over BIO.



java.lang.NullPointerException

      at org.eclipse.jetty.websocket.WebSocketFactory.upgrade(WebSocketFactory.java:197)

      at org.eclipse.jetty.websocket.WebSocketFactory.acceptWebSocket(WebSocketFactory.java:304)

      at org.eclipse.jetty.websocket.WebSocketServlet.service(WebSocketServlet.java:78)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)

      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)

      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)

      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

      at org.mortbay.jetty.Server.handle(Server.java:324)

      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

      at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)

      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Comment 1 Greg Wilkins CLA 2011-11-27 23:30:41 EST
can't reproduce NPE and websocket is not supported on blocking connectors