Unable to Process Mail due to error fetching POP3 content
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
JIRA is unable to create/comment on issues.
The following appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2013-07-26 07:49:21,549 WARN [JIRA POP TIARHE] QuartzWorker-1 ServiceRunner Create/Comment Service for CAPTAIN_PLANET Could not create issue from message!
javax.mail.MessagingException: No inputstream from datasource;
nested exception is:
java.io.IOException: error fetching POP3 content
at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:791)
at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:503)
at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:244)
at com.atlassian.mail.MailUtils.getBodyFromMultipart(MailUtils.java:458)
at com.atlassian.mail.MailUtils.getBodyFromMultipart(MailUtils.java:433)
at com.atlassian.mail.MailUtils.getBody(MailUtils.java:152)
at com.atlassian.jira.service.util.handler.CreateIssueHandler.getDescription(CreateIssueHandler.java:408)
at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:182)
at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:132)
at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:216)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:60)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: java.io.IOException: error fetching POP3 content
at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:109)
at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:785)
... 14 more
Cause
This is currently known to be caused by an attachment with an invalid filename.
Workaround
Check the inbox that JIRA is processing and view any mails with attachments, verifying the filenames. If one of them has an invalid name (for example it displays square characters) JIRA will not be able to process it. Removing the attachment or the mail will allow the mail handler to properly process the mail.
Was this helpful?