java.net.ConnectException: Connection refused

Jenkins JIRA | R. Tyler Croy | 4 months ago
  1. 0

    {code} javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) at javax.mail.Service.connect(Service.java:295) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at javax.mail.Transport.send0(Transport.java:194) at javax.mail.Transport.send(Transport.java:124) at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:116) at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:103) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900) ... 16 more Finished: FAILURE {code}

    Jenkins JIRA | 4 months ago | R. Tyler Croy
    java.net.ConnectException: Connection refused
  2. 0

    Jenkins Perforce plugin failure

    Stack Overflow | 1 year ago | user697911
    java.net.ConnectException: Connection refused
  3. 0

    What is the default Jenkins password?

    Stack Overflow | 4 years ago | HHC
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    sending/ receiving email in Java

    Stack Overflow | 4 years ago
    java.net.ConnectException: Connection refused
  6. 0

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

    Google Groups | 3 years ago | laredo...@zipmail.com
    java.net.ConnectException: Connection refused

  1. Tahir 164 times, last 2 months ago
  2. richard77 2 times, last 1 week ago
  3. treefolk 1 times, last 2 weeks ago
  4. kjhdofjosvs 20 times, last 2 weeks ago
  5. Andreas Häber 9 times, last 3 weeks ago
45 more registered users
49 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:339)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:579)
    6 frames
  3. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286)
    2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
    4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
    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. org.jenkinsci.plugins
    AbstractSynchronousNonBlockingStepExecution$1$1.call
    1. org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:116)
    2. org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:103)
    3. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
    3 frames
  6. Hudson
    ACL.impersonate
    1. hudson.security.ACL.impersonate(ACL.java:213)
    1 frame
  7. org.jenkinsci.plugins
    AbstractSynchronousNonBlockingStepExecution$1.run
    1. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
    1 frame
  8. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames