java.net.ConnectException: Connection timed out

Atlassian JIRA | David Soul [Atlassian] | 1 decade ago
  1. 0

    The exception thrown on an IMAP server timeout should show the IMAP server values eg hostname, port, login rather than an object reference. 2006-10-31 10:53:09,274 ERROR [atlassian.confluence.mail.DefaultMailAccountManager] retrieveMessages Error connecting to com.atlassian.confluence.mail.DefaultMailAccountManager@1e1362f: Error connecting to mail server: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out javax.mail.MessagingException: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:441) at javax.mail.Service.connect(Service.java:233) at com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:254) at com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:114) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:88) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:57) at com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:239) at sun.reflect.GeneratedMethodAccessor645.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) at $Proxy27.pollAllSpaces(Unknown Source) at com.atlassian.confluence.mail.jobs.MailPollJob.executeInternal(MailPollJob.java:29) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)

    Atlassian JIRA | 1 decade ago | David Soul [Atlassian]
    java.net.ConnectException: Connection timed out
  2. 0

    The exception thrown on an IMAP server timeout should show the IMAP server values eg hostname, port, login rather than an object reference. 2006-10-31 10:53:09,274 ERROR [atlassian.confluence.mail.DefaultMailAccountManager] retrieveMessages Error connecting to com.atlassian.confluence.mail.DefaultMailAccountManager@1e1362f: Error connecting to mail server: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out javax.mail.MessagingException: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:441) at javax.mail.Service.connect(Service.java:233) at com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:254) at com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:114) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:88) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:57) at com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:239) at sun.reflect.GeneratedMethodAccessor645.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) at $Proxy27.pollAllSpaces(Unknown Source) at com.atlassian.confluence.mail.jobs.MailPollJob.executeInternal(MailPollJob.java:29) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)

    Atlassian JIRA | 1 decade ago | David Soul [Atlassian]
    java.net.ConnectException: Connection timed out
  3. 0

    When the IMAPS connection times out on email polling once, the Confluence server doesn't poll for email any more. When triggering the polling manually in the Web interface the server claims to be currently polling the email account. The only remedy seems to be a server restart. I am just speculating here but it looks like the Quartz thread that is responsible for email polling terminates because the exception is not caught. When the error occurs, the following lines can be found In atlassian-confluence.log: 2007-02-14 19:57:09,085 ERROR [DefaultQuartzScheduler_Worker-3] [atlassian.confluence.mail.DefaultMailAccountManager] retrieveMessages Error connecting to IMAPS account [cisdwik i@rinn.ch@mail.genotec.ch:993] for space CISDInt: Error connecting to mail server: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out javax.mail.MessagingException: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:441) at javax.mail.Service.connect(Service.java:233) at com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:256) at com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:112) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:89) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:59) at com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:242) at sun.reflect.GeneratedMethodAccessor306.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy35.pollAllSpaces(Unknown Source) at com.atlassian.confluence.mail.jobs.MailPollJob.executeJob(MailPollJob.java:29) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:44) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Atlassian JIRA | 10 years ago | Bernd Rinn
    java.net.ConnectException: Connection timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When the IMAPS connection times out on email polling once, the Confluence server doesn't poll for email any more. When triggering the polling manually in the Web interface the server claims to be currently polling the email account. The only remedy seems to be a server restart. I am just speculating here but it looks like the Quartz thread that is responsible for email polling terminates because the exception is not caught. When the error occurs, the following lines can be found In atlassian-confluence.log: 2007-02-14 19:57:09,085 ERROR [DefaultQuartzScheduler_Worker-3] [atlassian.confluence.mail.DefaultMailAccountManager] retrieveMessages Error connecting to IMAPS account [cisdwik i@rinn.ch@mail.genotec.ch:993] for space CISDInt: Error connecting to mail server: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out javax.mail.MessagingException: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:441) at javax.mail.Service.connect(Service.java:233) at com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:256) at com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:112) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:89) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:59) at com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:242) at sun.reflect.GeneratedMethodAccessor306.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy35.pollAllSpaces(Unknown Source) at com.atlassian.confluence.mail.jobs.MailPollJob.executeJob(MailPollJob.java:29) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:44) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Atlassian JIRA | 10 years ago | Bernd Rinn
    java.net.ConnectException: Connection timed out
  6. 0

    zoe / Mailing Lists

    sourceforge.net | 1 year ago
    java.net.ConnectException: Connection timed out

  1. mauritius 67 times, last 3 months ago
1 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 timed out

    at com.sun.mail.imap.IMAPStore.protocolConnect()
  2. JavaMail API (compat)
    IMAPStore.protocolConnect
    1. com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:441)
    1 frame
  3. JavaMail API
    Service.connect
    1. javax.mail.Service.connect(Service.java:233)
    1 frame
  4. com.atlassian.confluence
    DefaultMailAccountManager.pollAllSpaces
    1. com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:254)
    2. com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:114)
    3. com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:88)
    4. com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:57)
    5. com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:239)
    5 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor645.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:324)
    3 frames
  6. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116)
    3 frames
  7. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
    1 frame
  8. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
    2 frames
  9. Unknown
    $Proxy27.pollAllSpaces
    1. $Proxy27.pollAllSpaces(Unknown Source)
    1 frame
  10. com.atlassian.confluence
    MailPollJob.executeInternal
    1. com.atlassian.confluence.mail.jobs.MailPollJob.executeInternal(MailPollJob.java:29)
    1 frame
  11. Spring Context Support
    QuartzJobBean.execute
    1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66)
    1 frame
  12. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
    2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
    2 frames