Error fetching messages from mailbox

http://youtrack.jetbrains.com/issue/JT-22932
We are getting the following exception while trying to load messages from the mailbox integration.

Can this be fixed as a matter of priority?

12 Dec 2013 16:08:00,855 INFO  [MailboxImpl         ] [tzJobProcessor4] [] Processing folder INBOX... 12 Dec 2013 16:08:01,760 INFO  [MailRuleImpl        ] [tzJobProcessor4] [] [Accepted] Fetched message [id: 00f664$n2prgj@irp4-04-r2-c1.spam.dc1.in.com]. 12 Dec 2013 16:08:01,810 WARN  [MailboxImpl         ] [tzJobProcessor4] [] Error on fetching messages for store associated with project Accenture Academy
javax.mail.MessagingException: Missing start boundary
javax.mail.MessagingException: Missing start boundary
 at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:872)
 at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:493)
 at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:240)
 at jetbrains.youtrack.mailbox.fetch.MessagePartsUtil.traverseParts(MessagePartsUtil.java:50)
 at jetbrains.youtrack.mailbox.fetch.FetchedMessage.getAttachments(FetchedMessage.java:166)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl.createIssue(MailRuleImpl.java:382)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl.processMessage(MailRuleImpl.java:198)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl$1.invoke(MailRuleImpl.java:139)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl$1.invoke(MailRuleImpl.java:132)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachImmediateMessage(EmailFetcher.java:97)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachMessage(EmailFetcher.java:57)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachSubfolderMessage(EmailFetcher.java:72)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachMessage(EmailFetcher.java:62)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachMessage(EmailFetcher.java:49)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl.process(MailRuleImpl.java:132)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3$1$2.invoke(MailboxImpl.java:157)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3$1$2.invoke(MailboxImpl.java:145)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.connect(MailboxImpl.java:264)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.access$000(MailboxImpl.java:44)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3$1.invoke(MailboxImpl.java:145)
 at jetbrains.teamsys.dnq.runtime.txn._Txn.run(_Txn.java:18)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3.invoke(MailboxImpl.java:133)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.doInsideFetchLock(MailboxImpl.java:354)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.process(MailboxImpl.java:131)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.process(MailboxImpl.java:178)
 at jetbrains.youtrack.mailbox.persistent.MailboxIntegration_fetchEmailsFromMailbox_Then.run(MailboxIntegration_fetchEmailsFromMailbox_Then.java:26)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl._execute(RuleJobImpl.java:69)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl.access$000(RuleJobImpl.java:14)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl$1.run(RuleJobImpl.java:47)
 at jetbrains.mps.businessRules.runtime.TransactionalExecutor$1.invoke(TransactionalExecutor.java:16)
 at jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:217)
 at jetbrains.mps.businessRules.runtime.TransactionalExecutor.execute(TransactionalExecutor.java:14)
 at webr.framework.controller.BeanContainerAwareExecutorWrapper.execute(BeanContainerAwareExecutorWrapper.java:24)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl.execute(RuleJobImpl.java:45)
 at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
 at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
 at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
 at jetbrains.exodus.core.execution.RunnableJob.execute(RunnableJob.java:26)
 at jetbrains.exodus.core.execution.Job.run(Job.java:84)
 at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:116)
 at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.executeOrdinaryJob(JobProcessorQueueAdapter.java:182)
 at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:110)
 at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:94)
 at jetbrains.exodus.core.execution.ThreadJobProcessor$1.run(ThreadJobProcessor.java:28)
 at java.lang.Thread.run(Thread.java:722)

12 Dec 2013 16:08:01,831 INFO  [MailRuleImpl        ] [tzJobProcessor4] [] [Accepted] Fetched message [id: 0a4af4$2smutk@irp2-01-r5-c1.spam.dc1.in.com]. 12 Dec 2013 16:08:01,871 WARN  [MailboxImpl         ] [tzJobProcessor4] [] Error on fetching messages for store associated with project Accenture Academy
javax.mail.MessagingException: Missing start boundary
javax.mail.MessagingException: Missing start boundary
 at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:872)
 at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:493)
 at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:240)
 at jetbrains.youtrack.mailbox.fetch.MessagePartsUtil.traverseParts(MessagePartsUtil.java:50)
 at jetbrains.youtrack.mailbox.fetch.FetchedMessage.getAttachments(FetchedMessage.java:166)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl.createIssue(MailRuleImpl.java:382)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl.processMessage(MailRuleImpl.java:198)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl$1.invoke(MailRuleImpl.java:139)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl$1.invoke(MailRuleImpl.java:132)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachImmediateMessage(EmailFetcher.java:97)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachMessage(EmailFetcher.java:57)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachSubfolderMessage(EmailFetcher.java:72)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachMessage(EmailFetcher.java:62)
 at jetbrains.youtrack.mailbox.fetch.EmailFetcher.foreachMessage(EmailFetcher.java:49)
 at jetbrains.youtrack.mailbox.persistent.MailRuleImpl.process(MailRuleImpl.java:132)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3$1$2.invoke(MailboxImpl.java:157)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3$1$2.invoke(MailboxImpl.java:145)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.connect(MailboxImpl.java:264)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.access$000(MailboxImpl.java:44)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3$1.invoke(MailboxImpl.java:145)
 at jetbrains.teamsys.dnq.runtime.txn._Txn.run(_Txn.java:18)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl$3.invoke(MailboxImpl.java:133)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.doInsideFetchLock(MailboxImpl.java:354)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.process(MailboxImpl.java:131)
 at jetbrains.youtrack.mailbox.persistent.MailboxImpl.process(MailboxImpl.java:178)
 at jetbrains.youtrack.mailbox.persistent.MailboxIntegration_fetchEmailsFromMailbox_Then.run(MailboxIntegration_fetchEmailsFromMailbox_Then.java:26)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl._execute(RuleJobImpl.java:69)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl.access$000(RuleJobImpl.java:14)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl$1.run(RuleJobImpl.java:47)
 at jetbrains.mps.businessRules.runtime.TransactionalExecutor$1.invoke(TransactionalExecutor.java:16)
 at jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:217)
 at jetbrains.mps.businessRules.runtime.TransactionalExecutor.execute(TransactionalExecutor.java:14)
 at webr.framework.controller.BeanContainerAwareExecutorWrapper.execute(BeanContainerAwareExecutorWrapper.java:24)
 at jetbrains.mps.businessRules.runtime.impl.RuleJobImpl.execute(RuleJobImpl.java:45)
 at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
 at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
 at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
 at jetbrains.exodus.core.execution.RunnableJob.execute(RunnableJob.java:26)
 at jetbrains.exodus.core.execution.Job.run(Job.java:84)
 at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:116)
 at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.executeOrdinaryJob(JobProcessorQueueAdapter.java:182)
 at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:110)
 at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:94)
 at jetbrains.exodus.core.execution.ThreadJobProcessor$1.run(ThreadJobProcessor.java:28)
 at java.lang.Thread.run(Thread.java:722)

...
3 comments
Comment actions Permalink
Hello Michael,

Please,provide us with your configuratoin details: Mailbox sever, cron expression, protocol you use.
Also, will it possible for you to provideus with the full logs (youtrack.log, errors.log) ?

Thank you.
0
Comment actions Permalink
I'm not sure what happened... The problem has gone on its own. If this happens again, I'll let you know
0

Please sign in to leave a comment.