com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: null

Atlassian JIRA | Sasa Markovic | 1 decade ago
  1. 0

    Hi, It looks like Confluence has a bug related to mail imports. The message from the attachment could not be parsed. Confluence constantly reports "1 mail imported", but the message is left on the mail server (POP) forever, even after several retries. I have removed this message from the server manually and the mail import functinonality is restored. But all my previously imported mails (dozens of them) ARE LOST :( Emails could have disappeared for some other resaon, though... We are using the latest trial version (we bought a license too, but we are still playing with the old, HSQL-based installation, Version: 2.2.9 Build:#527 Sep 07, 2006). I have searched log files, and found the following message: 2006-10-10 10:36:00,132 WARN [atlassian.confluence.mail.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [com.sun.mail.pop3.POP3Message@a852b] - this message will be left on the server com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: null at com.atlassian.confluence.mail.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:237) at sun.reflect.GeneratedMethodAccessor305.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 com.atlassian.confluence.util.profiling.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:18) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) 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 $Proxy31.storeIncomingMail(Unknown Source) at com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:135) 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.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 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 $Proxy41.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) Caused by: javax.mail.internet.ParseException at javax.mail.internet.ParameterList.<init>(ParameterList.java:61) at javax.mail.internet.ContentType.<init>(ContentType.java:83) at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:269) at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159) at com.atlassian.mail.MailUtils.getFirstInlinePartWithMimeType(MailUtils.java:369) at com.atlassian.mail.MailUtils.getBodyFromMultipart(MailUtils.java:343) at com.atlassian.mail.MailUtils.getBody(MailUtils.java:116) at com.atlassian.confluence.mail.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:222) ... 31 more

    Atlassian JIRA | 1 decade ago | Sasa Markovic
    com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: null
  2. 0

    Hi, It looks like Confluence has a bug related to mail imports. The message from the attachment could not be parsed. Confluence constantly reports "1 mail imported", but the message is left on the mail server (POP) forever, even after several retries. I have removed this message from the server manually and the mail import functinonality is restored. But all my previously imported mails (dozens of them) ARE LOST :( Emails could have disappeared for some other resaon, though... We are using the latest trial version (we bought a license too, but we are still playing with the old, HSQL-based installation, Version: 2.2.9 Build:#527 Sep 07, 2006). I have searched log files, and found the following message: 2006-10-10 10:36:00,132 WARN [atlassian.confluence.mail.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [com.sun.mail.pop3.POP3Message@a852b] - this message will be left on the server com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: null at com.atlassian.confluence.mail.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:237) at sun.reflect.GeneratedMethodAccessor305.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 com.atlassian.confluence.util.profiling.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:18) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) 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 $Proxy31.storeIncomingMail(Unknown Source) at com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:135) 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.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 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 $Proxy41.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) Caused by: javax.mail.internet.ParseException at javax.mail.internet.ParameterList.<init>(ParameterList.java:61) at javax.mail.internet.ContentType.<init>(ContentType.java:83) at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:269) at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159) at com.atlassian.mail.MailUtils.getFirstInlinePartWithMimeType(MailUtils.java:369) at com.atlassian.mail.MailUtils.getBodyFromMultipart(MailUtils.java:343) at com.atlassian.mail.MailUtils.getBody(MailUtils.java:116) at com.atlassian.confluence.mail.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:222) ... 31 more

    Atlassian JIRA | 1 decade ago | Sasa Markovic
    com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: null
  3. 0

    I got javax.mail.internet.ParseException ...

    Oracle Community | 2 decades ago | 843830
    javax.mail.internet.ParseException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    zip file attachment errors

    Oracle Community | 1 decade ago | 843830
    javax.mail.internet.ParseException
  6. 0

    &lt;Very Urgent&gt; ParseException

    Oracle Community | 1 decade ago | 843830
    javax.mail.internet.ParseException

    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. javax.mail.internet.ParseException

      No message provided

      at javax.mail.internet.ParameterList.<init>()
    2. JavaMail API
      MimeMultipart.getCount
      1. javax.mail.internet.ParameterList.<init>(ParameterList.java:61)
      2. javax.mail.internet.ContentType.<init>(ContentType.java:83)
      3. javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:269)
      4. javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159)
      4 frames
    3. com.atlassian.mail
      MailUtils.getBody
      1. com.atlassian.mail.MailUtils.getFirstInlinePartWithMimeType(MailUtils.java:369)
      2. com.atlassian.mail.MailUtils.getBodyFromMultipart(MailUtils.java:343)
      3. com.atlassian.mail.MailUtils.getBody(MailUtils.java:116)
      3 frames
    4. com.atlassian.confluence
      DefaultMailContentManager.storeIncomingMail
      1. com.atlassian.confluence.mail.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:222)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor305.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. com.atlassian.confluence
      SpringProfilingInterceptor.invoke
      1. com.atlassian.confluence.util.profiling.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:18)
      1 frame
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
      1 frame
    9. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      1 frame
    10. 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
    11. Unknown
      $Proxy31.storeIncomingMail
      1. $Proxy31.storeIncomingMail(Unknown Source)
      1 frame
    12. com.atlassian.confluence
      DefaultMailAccountManager.pollAllSpaces
      1. com.atlassian.confluence.mail.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:135)
      2. com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:88)
      3. com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:57)
      4. com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:239)
      4 frames
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    14. 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
    15. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      1 frame
    16. 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
    17. Unknown
      $Proxy41.pollAllSpaces
      1. $Proxy41.pollAllSpaces(Unknown Source)
      1 frame
    18. com.atlassian.confluence
      MailPollJob.executeInternal
      1. com.atlassian.confluence.mail.jobs.MailPollJob.executeInternal(MailPollJob.java:29)
      1 frame
    19. Spring Context Support
      QuartzJobBean.execute
      1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66)
      1 frame
    20. 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