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

Solutions on the web

via Hibernate JIRA by Bruce Scott, 2 years ago
Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect
via Hibernate JIRA by Bruce Scott, 1 year ago
Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect
via Oracle Community by 807595, 1 year ago
Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect
via Oracle Community by 843854, 1 year ago
Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused
via Oracle Community by 361171, 1 year ago
Unable to connect to any hosts due to exception: java.lang.NullPointerException
java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.Connection.createNewIO(Connection.java:1690) at com.mysql.jdbc.Connection.<init>(Connection.java:427) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:395) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:95) at net.sf.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:119) at net.sf.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:84) at com.digitalwake.datamanager.test.createSchemaTest(test.java:48) at com.digitalwake.datamanager.test.main(test.java:37)