com.sun.grizzly.websockets.HandshakeException: Null keys are not allowed. at >> com.sun.grizzly.websockets.SecKey.(SecKey.java:79) at >> com.sun.grizzly.websockets.ServerHandShake.(ServerHandShake.java:68) at >> com.sun.grizzly.websockets.ServerNetworkHandler.handshake(ServerNetworkHandler.java:95) >> at >> com.sun.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:136) >> at >> com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:52) >> at >> com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171) >> at >> com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143) >>

Oracle Community | abhijitaitwade | 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

    Websocket connection not establishing in glasshfish server. How to fix it?

    Oracle Community | 5 years ago | abhijitaitwade
    com.sun.grizzly.websockets.HandshakeException: Null keys are not allowed. at >> com.sun.grizzly.websockets.SecKey.(SecKey.java:79) at >> com.sun.grizzly.websockets.ServerHandShake.(ServerHandShake.java:68) at >> com.sun.grizzly.websockets.ServerNetworkHandler.handshake(ServerNetworkHandler.java:95) >> at >> com.sun.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:136) >> at >> com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:52) >> at >> com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171) >> at >> com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143) >>

    Root Cause Analysis

    1. com.sun.grizzly.websockets.HandshakeException

      Null keys are not allowed. at >> com.sun.grizzly.websockets.SecKey.(SecKey.java:79) at >> com.sun.grizzly.websockets.ServerHandShake.(ServerHandShake.java:68) at >> com.sun.grizzly.websockets.ServerNetworkHandler.handshake(ServerNetworkHandler.java:95) >> at >> com.sun.grizzly.websockets.WebSocketEngine.upgrade(WebSocketEngine.java:136) >> at >> com.sun.grizzly.websockets.WebSocketAsyncFilter.doFilter(WebSocketAsyncFilter.java:52) >> at >> com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171) >> at >> com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143) >>

      at com.sun.grizzly.arp.AsyncProcessorTask.doTask()
    2. Grizzly WS
      TaskBase.run
      1. com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:94)
      2. com.sun.grizzly.http.TaskBase.run(TaskBase.java:193)
      2 frames