javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out

Jenkins JIRA | vikranth reddy | 2 years ago
  1. 0

    Im unable to trigger email in jenkins when build pass/fail.. I see read time out error ERROR: Could not send email as a part of the post-build publishers. javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2153) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1912) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) at javax.mail.Service.connect(Service.java:317) 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 hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:306) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:281) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:233) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1805) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2131) ... 18 more Some error occured trying to send the email...check the Jenkins log Finished: SUCCESS

    Jenkins JIRA | 2 years ago | vikranth reddy
    javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out
  2. 0

    Forum - Forum

    ksup.org | 1 year ago
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465
  3. 0

    Forum - Forum

    ksup.org | 8 months ago
    org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Im unable to trigger email in jenkins when build pass/fail.. I see read time out error ERROR: Could not send email as a part of the post-build publishers. javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2153) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1912) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) at javax.mail.Service.connect(Service.java:317) 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 hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:306) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:281) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:233) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1805) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2131) ... 18 more Some error occured trying to send the email...check the Jenkins log Finished: SUCCESS

    Jenkins JIRA | 2 years ago | vikranth reddy
    java.net.SocketTimeoutException: Read timed out

  1. Aria Pahlavan 4 times, last 2 weeks ago
  2. poroszd 4 times, last 3 weeks ago
  3. mauritius 24 times, last 1 month ago
  4. aldrinleal 1 times, last 1 month ago
  5. Nikolay Rybak 1 times, last 1 month ago
11 more registered users
70 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.SocketTimeoutException

    Read timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(Unknown Source)
    3. java.net.SocketInputStream.read(Unknown Source)
    3 frames
  3. JavaMail API (compat)
    TraceInputStream.read
    1. com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
    1 frame
  4. Java RT
    BufferedInputStream.read
    1. java.io.BufferedInputStream.fill(Unknown Source)
    2. java.io.BufferedInputStream.read(Unknown Source)
    2 frames
  5. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)
    2. com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2131)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1912)
    4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
    4 frames
  6. JavaMail API
    Transport.send
    1. javax.mail.Service.connect(Service.java:317)
    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
  7. Hudson Email Extension Plugin
    ExtendedEmailPublisher.perform
    1. hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:306)
    2. hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:281)
    3. hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:233)
    3 frames
  8. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
    4. hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
    5. hudson.model.Run.execute(Run.java:1805)
    6. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    7. hudson.model.ResourceController.execute(ResourceController.java:89)
    8. hudson.model.Executor.run(Executor.java:240)
    8 frames