java.net.SocketTimeoutException: Read timed out

Atlassian JIRA | Sean Yong [Atlassian] | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Emails end up in error queue and users receives multiple notification mails until error queue is purged. Confluence does not acknowledge despite the emails being sent out to the target email address. The following errors will be thrown in the _atlassian-confluence.log_ file. {code} 2015-07-24 06:02:10,407 ERROR [scheduler_Worker-10] [confluence.mail.template.ConfluenceMailQueueItem] send Unable to send email with subject 'Title' to <email> reason: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:143) at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:88) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:140) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.execute(ConfluenceMailQueueItem.java:210) at com.atlassian.core.task.AbstractErrorQueuedTaskQueue$TaskDecorator.execute(AbstractErrorQueuedTaskQueue.java:100) at com.atlassian.core.task.AbstractTaskQueue.flush(AbstractTaskQueue.java:38) at com.atlassian.core.task.AbstractErrorQueuedTaskQueue.flush(AbstractErrorQueuedTaskQueue.java:30) at com.atlassian.quartz.jobs.TaskQueueFlushJob.doExecute(TaskQueueFlushJob.java:34) at com.atlassian.quartz.jobs.AbstractJob$1.doInHibernate(AbstractJob.java:133) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337) at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:125) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(Quartz1JobFactory.java:62) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:22) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2210) at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2093) at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1900) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1122) at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:116) ... 16 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2188) ... 20 more {code}

    Atlassian JIRA | 2 years ago | Sean Yong [Atlassian]
    java.net.SocketTimeoutException: Read timed out
  2. 0

    Emails end up in error queue and users receives multiple notification mails until error queue is purged. Confluence does not acknowledge despite the emails being sent out to the target email address. The following errors will be thrown in the _atlassian-confluence.log_ file. {code} 2015-07-24 06:02:10,407 ERROR [scheduler_Worker-10] [confluence.mail.template.ConfluenceMailQueueItem] send Unable to send email with subject 'Title' to <email> reason: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:143) at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:88) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:140) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.execute(ConfluenceMailQueueItem.java:210) at com.atlassian.core.task.AbstractErrorQueuedTaskQueue$TaskDecorator.execute(AbstractErrorQueuedTaskQueue.java:100) at com.atlassian.core.task.AbstractTaskQueue.flush(AbstractTaskQueue.java:38) at com.atlassian.core.task.AbstractErrorQueuedTaskQueue.flush(AbstractErrorQueuedTaskQueue.java:30) at com.atlassian.quartz.jobs.TaskQueueFlushJob.doExecute(TaskQueueFlushJob.java:34) at com.atlassian.quartz.jobs.AbstractJob$1.doInHibernate(AbstractJob.java:133) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337) at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:125) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(Quartz1JobFactory.java:62) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:22) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2210) at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2093) at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1900) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1122) at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:116) ... 16 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2188) ... 20 more {code}

    Atlassian JIRA | 2 years ago | Sean Yong [Atlassian]
    java.net.SocketTimeoutException: Read timed out

    Root Cause Analysis

    1. java.net.SocketTimeoutException

      Read timed out

      at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport()
    2. com.atlassian.confluence
      ConfluenceMailQueueItem.execute
      1. com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:143)
      2. com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:88)
      3. com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:140)
      4. com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.execute(ConfluenceMailQueueItem.java:210)
      4 frames
    3. com.atlassian.core
      AbstractErrorQueuedTaskQueue.flush
      1. com.atlassian.core.task.AbstractErrorQueuedTaskQueue$TaskDecorator.execute(AbstractErrorQueuedTaskQueue.java:100)
      2. com.atlassian.core.task.AbstractTaskQueue.flush(AbstractTaskQueue.java:38)
      3. com.atlassian.core.task.AbstractErrorQueuedTaskQueue.flush(AbstractErrorQueuedTaskQueue.java:30)
      3 frames
    4. com.atlassian.quartz
      AbstractJob$1.doInHibernate
      1. com.atlassian.quartz.jobs.TaskQueueFlushJob.doExecute(TaskQueueFlushJob.java:34)
      2. com.atlassian.quartz.jobs.AbstractJob$1.doInHibernate(AbstractJob.java:133)
      2 frames
    5. Hibernate
      HibernateTemplate.execute
      1. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
      2. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337)
      2 frames
    6. com.atlassian.quartz
      AbstractJob.executeInternal
      1. com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:125)
      1 frame
    7. Spring Context Support
      QuartzJobBean.execute
      1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      1 frame
    8. com.atlassian.scheduler
      Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute
      1. com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(Quartz1JobFactory.java:62)
      1 frame
    9. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      1 frame
    10. com.atlassian.confluence
      ConfluenceQuartzThreadPool$1.run
      1. com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:22)
      1 frame
    11. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      1 frame