Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8157045

NPE during websocket communication with wss

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b124
    • Verification:
      Not verified

      Description

      This issue only happens when connect with "wss://serverendpoint". Please refer to the attached sample test.
      Both reproduced on Windows and Linux with latest 9 dev nightly builds.

      It can be simply reproduced with following snippet :
      //Server endpoint is a simple Echo server which just send the received messages back to the client.

      WebSocket ws = WebSocket.newBuilder(
                      URI_TO_ECHO_ENDPOINT, A_HTTPClient_WITH_SSLContext, A_Listener())
                      .buildAsync().get();
              ws.sendText("Fist message");
              ws.sendText("Second message");

              // Then wait for all the replied messages

      I double checked the server endpoint. The messages were indeed received and replied

        Attachments

          Activity

            People

            Assignee:
            chegar Chris Hegarty
            Reporter:
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: