java.net.SocketTimeoutException: Read timed out

atlassian.com | 3 months ago
  1. 0

    Mail server connection failed with GMail - Atlassian Documentation

    atlassian.com | 3 months ago
    java.net.SocketTimeoutException: Read timed out
  2. 0

    Using port 465 with Amazon AWS Simple Email Service (SES) or Gmail will have the following error: {noformat}2014-05-15 14:23:16,462 ERROR [http-bio-7990-exec-6] jethomas 862x328x0 q0doku 0:0:0:0:0:0:0:1 "POST /admin/mail-server HTTP/1.1" stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: <redacted>; subject: Stash - Test email for your SMTP configuration org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out. Failed messages: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:408) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:363) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:351) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:203) [stash-service-impl-2.12.3.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendTest(MailServiceImpl.java:196) [stash-service-impl-2.12.3.jar:na] at com.sun.proxy.$Proxy219.sendTest(Unknown Source) [na:na] at com.atlassian.stash.internal.web.admin.MailServerConfigurationController.testSettings(MailServerConfigurationController.java:76) [MailServerConfigurationController.class:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.1.1_1389474434000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:92) [StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) [atlassian-trusted-apps-core-3.0.3.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:61) [atlassian-oauth-service-provider-plugin-1.9.1_1387973162000.jar:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) [atlassian-trusted-apps-core-3.0.3.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:61) [atlassian-oauth-service-provider-plugin-1.9.1_1387973162000.jar:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:73) [stash-service-impl-2.12.3.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55] ... 212 frames trimmed Caused by: javax.mail.MessagingException: Exception reading response at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2202) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1939) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) ~[mail-1.4.7.jar:1.4.7] at javax.mail.Service.connect(Service.java:295) ~[mail-1.4.7.jar:1.4.7] at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:397) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] ... 21 common frames omitted Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_55] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_55] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_55] at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124) ~[mail-1.4.7.jar:1.4.7] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_55] at java.io.BufferedInputStream.read(BufferedInputStream.java:254) ~[na:1.7.0_55] at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2182) ~[mail-1.4.7.jar:1.4.7] ... 25 common frames omitted {noformat} h3.Workaround Use port 587 (TLS) or 25 (SSL)

    Atlassian JIRA | 3 years ago | Jeff Thomas
    java.net.SocketTimeoutException: Read timed out
  3. 0

    Using port 465 with Amazon AWS Simple Email Service (SES) or Gmail will have the following error: {noformat}2014-05-15 14:23:16,462 ERROR [http-bio-7990-exec-6] jethomas 862x328x0 q0doku 0:0:0:0:0:0:0:1 "POST /admin/mail-server HTTP/1.1" stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: <redacted>; subject: Stash - Test email for your SMTP configuration org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out. Failed messages: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:408) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:363) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:351) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:203) [stash-service-impl-2.12.3.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendTest(MailServiceImpl.java:196) [stash-service-impl-2.12.3.jar:na] at com.sun.proxy.$Proxy219.sendTest(Unknown Source) [na:na] at com.atlassian.stash.internal.web.admin.MailServerConfigurationController.testSettings(MailServerConfigurationController.java:76) [MailServerConfigurationController.class:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.1.1_1389474434000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:92) [StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) [atlassian-trusted-apps-core-3.0.3.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:61) [atlassian-oauth-service-provider-plugin-1.9.1_1387973162000.jar:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) [atlassian-trusted-apps-core-3.0.3.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:61) [atlassian-oauth-service-provider-plugin-1.9.1_1387973162000.jar:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:73) [stash-service-impl-2.12.3.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55] ... 212 frames trimmed Caused by: javax.mail.MessagingException: Exception reading response at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2202) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1939) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) ~[mail-1.4.7.jar:1.4.7] at javax.mail.Service.connect(Service.java:295) ~[mail-1.4.7.jar:1.4.7] at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:397) ~[spring-context-support-4.0.2.RELEASE.jar:4.0.2.RELEASE] ... 21 common frames omitted Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_55] at java.net.SocketInputStream.read(SocketInputStream.java:152) ~[na:1.7.0_55] at java.net.SocketInputStream.read(SocketInputStream.java:122) ~[na:1.7.0_55] at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124) ~[mail-1.4.7.jar:1.4.7] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) ~[na:1.7.0_55] at java.io.BufferedInputStream.read(BufferedInputStream.java:254) ~[na:1.7.0_55] at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2182) ~[mail-1.4.7.jar:1.4.7] ... 25 common frames omitted {noformat} h3.Workaround Use port 587 (TLS) or 25 (SSL)

    Atlassian JIRA | 3 years ago | Jeff Thomas
    java.net.SocketTimeoutException: Read timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mail server connection failed with GMail - Atlassian Documentation

    atlassian.com | 7 months ago
    java.net.SocketTimeoutException: Read timed out
  6. 0

    How to fix the "java.net.SocketTimeoutException: Read timed out" error

    codeguru.com | 1 year ago
    java.net.SocketTimeoutException: Read timed out>java.net.SocketTimeoutException: Read timed out

    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 org.springframework.mail.javamail.JavaMailSenderImpl.doSend()
    2. Spring Context Support
      JavaMailSenderImpl.send
      1. org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:400)[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      2. org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      3. org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:355)[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      4. org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344)[spring-context-support-3.1.2.RELEASE.jar:3.1.2.RELEASE]
      4 frames
    3. com.atlassian.stash
      MailServiceImpl.sendTest
      1. com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:198)[stash-service-impl-1.3.0.jar:na]
      2. com.atlassian.stash.internal.mail.MailServiceImpl.sendTest(MailServiceImpl.java:191)[stash-service-impl-1.3.0.jar:na]
      2 frames
    4. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_35]
      1 frame