Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.6
-
3.06
-
Description
Attachment creation failure will cause a NullPointer exception when attempting to create a change item for the attachment in the history of the issue. This results in the message handler looping over the mail indefinitely as the processing never completes.
The exception generated is as follows:
2006-04-21 17:24:10,854 WARN [jira.issue.managers.DefaultAttachmentManager] Creating attachment without a file. Ab
orting
2006-04-21 17:24:10,862 ERROR [service.util.handler.AbstractMessageHandler] Exception while creating attachment for
issue STAT-212: java.lang.NullPointerException
java.lang.NullPointerException
at com.atlassian.jira.issue.history.ChangeLogUtils.createChangeGroup(ChangeLogUtils.java:85)
at com.atlassian.jira.issue.util.DefaultIssueUpdater.doUpdate(DefaultIssueUpdater.java:55)
at com.atlassian.jira.service.util.handler.AbstractCommentHandler.addChangeHistoryItem(AbstractCommentHandl
er.java:122)
at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageH
andler.java:262)
at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.ja
va:216)
at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessa
geHandler.java:195)
at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java
:90)
at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
2006-04-21 17:24:10,864 WARN [service.util.handler.AbstractCommentHandler] Exception creating comment null
java.io.IOException
at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageH
andler.java:269)
at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.ja
va:216)
at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessa
geHandler.java:195)
at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java
:90)
at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Attachments
Issue Links
- causes
-
JRASERVER-11367 When a user forgets to fill required fields in the create form and submits, attachments are removed and need to be redone
- Closed
- is duplicated by
-
JRASERVER-10093 E-mail create/comment handler keeps posting the same message repeatedly
- Closed
- is related to
-
JRASERVER-10221 An issue could be created from the same e-mail message over and over if creation of attachments fails with an exception
- Closed