java.net.ConnectException

Connection refused: connect: localhost" [90067-161]

Samebug tips9

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

Firewall might be blocking your connection, or MySQL it's not running on your server machine.

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

Solutions on the web13748

  • via Google Groups by Christian123456789, 1 year ago
    Connection refused: connect: localhost" [90067-161]
  • via nabble.com by Unknown author, 11 months ago
    Connection refused: connect: localhost" [90067-161] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
  • Connection refused: connect: localhost" [90067-161] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
  • Stack trace

    • java.net.ConnectException: Connection refused: connect: localhost" [90067-161] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) at org.h2.message.DbException.get(DbException.java:158) at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:377) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:267) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94) at org.h2.Driver.connect(Driver.java:72) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:168) at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:118) at org.h2.tools.Console.runTool(Console.java:222) at org.h2.tools.Console.main(Console.java:100) Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at org.h2.util.NetUtils.createSocket(NetUtils.java:110) at org.h2.util.NetUtils.createSocket(NetUtils.java:91) at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:91) at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:373) ... 10 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

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    17 times, 3 days ago
    3 times, 4 days ago
    11 times, 2 weeks ago
    485 more bugmates