java.net.ConnectException: Connection refused

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if your MongoDB is available.


rp
tip

host port isnt set

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

  • NoClassDefFoundError
    via by 807554,
  • mySQL JDBC problem
    via by Jed McCaleb,
  • MySQL and JDBC Problem
    via by Bryce Alcock,
  • Connection Refused
    via by Favian Ee,
  • JDBC exception problem
    via by Andreas Nordseth,
  • WSO2 Products with MySQL Error
    via Stack Overflow by Rafa Hernández
    ,
  • Sql connection error
    via GitHub by soulgriever
    ,
  • Can't create Portals
    via GitHub by bboy5454
    ,
  • GitHub comment 22#60719720
    via GitHub by xingfengshen
    ,
    • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148) at java.net.Socket.connect(Socket.java:425) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.<init>(Socket.java:290) at java.net.Socket.<init>(Socket.java:118) at org.gjt.mm.mysql.MysqlIO.<init>(MysqlIO.java:114) at org.gjt.mm.mysql.Connection.<init>(Connection.java:229) at org.gjt.mm.mysql.Driver.connect(Driver.java:126) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at test.main(test.java:26)

    Users with the same issue

    linxiaolong
    linxiaolong374 times, last one,
    Handemelindo
    Handemelindo1 times, last one,
    poroszd
    poroszd5 times, last one,
    stigkj
    stigkj4 times, last one,
    michallos
    michallos1 times, last one,
    819 more bugmates