java.net.ConnectException: Connection refused

Coderanch | Isaac Ferguson | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Sending email error with the ports

    Coderanch | 1 year ago | Isaac Ferguson
    java.net.ConnectException: Connection refused
  2. 0

    sending/ receiving email in Java

    Stack Overflow | 5 years ago
    java.net.ConnectException: Connection refused
  3. 0

    Is it possible to mock void methods in a static class using PowerMOck 1.5.1?

    Google Groups | 4 years ago | laredo...@zipmail.com
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JavaMail bug?

    Google Groups | 6 years ago | Martin Gregorie
    java.net.ConnectException: Connection refused
  6. 0

    Jenkins Perforce plugin failure

    Stack Overflow | 2 years ago | user697911
    java.net.ConnectException: Connection refused

  1. Tahir 164 times, last 4 months ago
  2. iferca 1 times, last 1 week ago
  3. Nikolay Rybak 1010 times, last 2 weeks ago
  4. mauritius 7 times, last 2 weeks ago
  5. andyglick 1 times, last 2 weeks ago
50 more registered users
45 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    7. java.net.Socket.connect(Socket.java:538)
    7 frames
  3. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
    2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
    4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
    4 frames
  4. JavaMail API
    Transport.send
    1. javax.mail.Service.connect(Service.java:295)
    2. javax.mail.Service.connect(Service.java:176)
    3. javax.mail.Service.connect(Service.java:125)
    4. javax.mail.Transport.send0(Transport.java:194)
    5. javax.mail.Transport.send(Transport.java:124)
    5 frames
  5. emailsenden
    SendEmail.main
    1. emailsenden.SendEmail.main(SendEmail.java:60)
    1 frame