javax.mail.MessagingException

Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect

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 web668

  • via Coderanch by P Chaudhari, 8 months ago
    Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect
  • via Coderanch by Nila dhan, 8 months ago
    Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect
  • via Google Groups by jug, 1 week ago
    Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect
  • Stack trace

    • javax.mail.MessagingException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:670) at javax.mail.Service.connect(Service.java:295) at com.macsdesign.whd.util.EmailUtils$1.executeUntilTimeout(EmailUtils.java:282) at com.macsdesign.util.ThreadTimer$TimeableThread.run(ThreadTimer.java:138) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source)

    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, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    984 more bugmates