java.net.ConnectException: Connection refused: connect

com.tr | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    How to Fix java.net.ConnectException: Connection refused: connect in Java

    blogspot.com | 9 months ago
    java.net.ConnectException: Connection refused: connect
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: connect

    at java.net.DualStackPlainSocketImpl.connect0()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:579)
    9. java.net.Socket.connect(Socket.java:528)
    9 frames
  3. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:301)
    2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:229)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1950)
    4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:656)
    4 frames
  4. JavaMail API
    Transport.send
    1. javax.mail.Service.connect(Service.java:345)
    2. javax.mail.Service.connect(Service.java:226)
    3. javax.mail.Service.connect(Service.java:175)
    4. javax.mail.Transport.send0(Transport.java:253)
    5. javax.mail.Transport.send(Transport.java:124)
    5 frames
  5. Unknown
    Testing.main
    1. Testing.main(Testing.java:62)
    1 frame