javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed

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

    Spring Websockets/Stomp upgrade to secure websockets

    Stack Overflow | 4 months ago | rurounisuikoden
    javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused

      at sun.nio.ch.UnixAsynchronousSocketChannelImpl.checkConnect()
    2. Java RT
      Thread.run
      1. sun.nio.ch.UnixAsynchronousSocketChannelImpl.checkConnect(Native Method)[na:1.7.0_80]
      2. sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishConnect(UnixAsynchronousSocketChannelImpl.java:252)[na:1.7.0_80]
      3. sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:198)[na:1.7.0_80]
      4. sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)[na:1.7.0_80]
      5. sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:293)[na:1.7.0_80]
      6. java.lang.Thread.run(Thread.java:745)[na:1.7.0_80]
      6 frames