java.net.UnknownHostException: test.smtp.com

Atlassian JIRA | ADS-LRZ | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h2.First Symptom When the configured outgoing mail server is temporarily deferring mails (with a 4xx status code) confluence drops the mails silently and does not queue them back into the "mail queue" or "error queue". *Steps to replicate* # Install a fresh confluence 5.8.16 # Set up a [gmail server|https://confluence.atlassian.com/pages/viewpage.action?pageId=42795030] # set a test email, confirmed it's working # Change the configuration so that it will be broken # Wait for the email queue to be triggered {code} 2016-1-17 11:52:01,466 ERROR [scheduler_Worker-9] [confluence.mail.template.ConfluenceMailQueueItem] send Unable to send email with subject 'Administrator Request' to <asd@asd.com,name@xxx.com,name@xxxxx.com> reason: javax.mail.MessagingException: Unknown SMTP host: test.smtp.com; nested exception is: java.net.UnknownHostException: test.smtp.com com.atlassian.mail.MailException: javax.mail.MessagingException: Unknown SMTP host: test.smtp.com; nested exception is: java.net.UnknownHostException: test.smtp.com at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:139) at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:88) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:142) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:94) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.execute(ConfluenceMailQueueItem.java:212) 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.lambda$executeInternal$46(AbstractJob.java:129) 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.lambda$runInThread$151(ConfluenceQuartzThreadPool.java:19) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: javax.mail.MessagingException: Unknown SMTP host: test.smtp.com; nested exception is: {code} *Expected Behavior* Any unable to send queue should be back into the {{Error-queue}} *Actual Behavior* The Error mail queue always empty !mail-queue.PNG|thumbnail!

    Atlassian JIRA | 1 year ago | ADS-LRZ
    java.net.UnknownHostException: test.smtp.com
  2. 0

    h2.First Symptom When the configured outgoing mail server is temporarily deferring mails (with a 4xx status code) confluence drops the mails silently and does not queue them back into the "mail queue" or "error queue". *Steps to replicate* # Install a fresh confluence 5.8.16 # Set up a [gmail server|https://confluence.atlassian.com/pages/viewpage.action?pageId=42795030] # set a test email, confirmed it's working # Change the configuration so that it will be broken # Wait for the email queue to be triggered {code} 2016-1-17 11:52:01,466 ERROR [scheduler_Worker-9] [confluence.mail.template.ConfluenceMailQueueItem] send Unable to send email with subject 'Administrator Request' to <asd@asd.com,name@xxx.com,name@xxxxx.com> reason: javax.mail.MessagingException: Unknown SMTP host: test.smtp.com; nested exception is: java.net.UnknownHostException: test.smtp.com com.atlassian.mail.MailException: javax.mail.MessagingException: Unknown SMTP host: test.smtp.com; nested exception is: java.net.UnknownHostException: test.smtp.com at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:139) at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:88) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:142) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:94) at com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.execute(ConfluenceMailQueueItem.java:212) 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.lambda$executeInternal$46(AbstractJob.java:129) 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.lambda$runInThread$151(ConfluenceQuartzThreadPool.java:19) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: javax.mail.MessagingException: Unknown SMTP host: test.smtp.com; nested exception is: {code} *Expected Behavior* Any unable to send queue should be back into the {{Error-queue}} *Actual Behavior* The Error mail queue always empty !mail-queue.PNG|thumbnail!

    Atlassian JIRA | 1 year ago | ADS-LRZ
    java.net.UnknownHostException: test.smtp.com

    Root Cause Analysis

    1. java.net.UnknownHostException

      test.smtp.com

      at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport()
    2. com.atlassian.confluence
      ConfluenceMailQueueItem.execute
      1. com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:139)
      2. com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:88)
      3. com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:142)
      4. com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.send(ConfluenceMailQueueItem.java:94)
      5. com.atlassian.confluence.mail.template.ConfluenceMailQueueItem.execute(ConfluenceMailQueueItem.java:212)
      5 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.lambda$executeInternal$46
      1. com.atlassian.quartz.jobs.TaskQueueFlushJob.doExecute(TaskQueueFlushJob.java:34)
      2. com.atlassian.quartz.jobs.AbstractJob.lambda$executeInternal$46(AbstractJob.java:129)
      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.lambda$runInThread$151
      1. com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool.lambda$runInThread$151(ConfluenceQuartzThreadPool.java:19)
      1 frame
    11. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      1 frame