The HTTP request to initiate the WebSocket connection failed

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

Stack trace

  • javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed at org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer([tomcat7-websocket.jar:7.0.68] at org.springframework.web.socket.client.standard.StandardWebSocketClient$[spring-websocket-4.2.5.RELEASE.jar:4.2.5.RELEASE] at org.springframework.web.socket.client.standard.StandardWebSocketClient$[spring-websocket-4.2.5.RELEASE.jar:4.2.5.RELEASE] at[na:1.7.0_80] at[na:1.7.0_80] Caused by: java.util.concurrent.ExecutionException: Connection refused at[na:1.7.0_80] at org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer([tomcat7-websocket.jar:7.0.68] ... 4 more Caused by: Connection refused at Method)[na:1.7.0_80] at[na:1.7.0_80] at[na:1.7.0_80] at[na:1.7.0_80] at$[na:1.7.0_80] ... 1 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

10 times, last one
5 times, last one
2 times, last one
Unknown visitor
Unknown visitor2 times, last one
Unknown visitor
Unknown visitorOnce,
1 more bugmates