Unable to Process Mail due to error fetching POP3 content

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

JIRA is unable to create/comment on issues.

The following appears in the atlassian-jira.log:

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.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.