Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    If you're not using yet, consider using the SQLServerDataSource to set your server configurations. Also, check if the server is accepting TCP/IP connections and if there's no firewall blocking the connections.

Solutions on the web

via Oracle Community by 843859, 8 months ago
The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
via coderanch.com by Unknown author, 1 year ago
via coderanch.com by Unknown author, 1 year ago
via hibernate.org by Unknown author, 2 years ago
The TCP/IP connection to the host has failed. java.net.UnknownHostException:
via hibernate.org by Unknown author, 2 years ago
The TCP/IP connection to the host has failed. java.net.UnknownHostException:
via Oracle Community by 843859, 9 months ago
The port number 1434/common is not valid.
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. 
: Connection refused: connect	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)	at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)	at java.sql.DriverManager.getConnection(DriverManager.java:512)	at java.sql.DriverManager.getConnection(DriverManager.java:171)