com.sun.grizzly.websockets.HandshakeException: Missing required headers for WebSocket negotiation

Oracle Community | gauravkarwayun | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Websockets with Glassfish 3.1.1 (Error: Missing required headers for WebSocket negotiation)

    Oracle Community | 5 years ago | gauravkarwayun
    com.sun.grizzly.websockets.HandshakeException: Missing required headers for WebSocket negotiation
  2. 0

    Glassfish 3.1.1 invalid connection header

    GitHub | 5 years ago | sahlex
    com.sun.grizzly.websockets.HandshakeException: Invalid Connection header returned: 'keep-alive, Upgrade'

    Root Cause Analysis

    1. com.sun.grizzly.websockets.HandshakeException

      Missing required headers for WebSocket negotiation

      at com.sun.grizzly.websockets.ServerHandShake.<init>()
    2. grizzly-websockets
      WebSocketAsyncFilter.doFilter
      1. com.sun.grizzly.websockets.ServerHandShake.<init>(ServerHandShake.java:73)
      2. com.sun.grizzly.websockets.ServerNetworkHandler.handshake(ServerNetworkHandler.java:95)
      3. com.sun.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:136)
      4. com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:52)
      4 frames
    3. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171)
      2. com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143)
      3. com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:94)
      4. com.sun.grizzly.http.TaskBase.run(TaskBase.java:193)
      5. com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175)
      6. com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145)
      7. com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:204)
      8. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      9. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      10. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      11. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      12. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      13. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      14. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      15. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      16. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      16 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame