Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1292

connectToServer - throw exceptio when connecting to wss (secure websocket)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.4.23.Final, 2.0.1.Final
    • None
    • None
    • None

      Using the following code to connect to a server:

      final URI uri = URI.create("wss://localhost:8443/wss1_war_exploded/websocket");
      MyClientEndpoint clientEndpoint = new MyClientEndpoint();
      Session session = ContainerProvider.getWebSocketContainer().connectToServer(clientEndpoint, uri);
      

      I'm getting this exception

      java.lang.IllegalArgumentException: XNIO000100: 'https' URL scheme chosen but no SSL provider given
      

      Any helps ? Thanks.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              kasim994 Kasim Jasarevic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: