Attachment creation failure causes message handler to loop over message indefinitely.

XMLWordPrintable

    • 3.06

      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)

              Assignee:
              Dushan Hanuska [Atlassian]
              Reporter:
              Keith Brophy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 3h Original Estimate - 3h
                  3h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4.75h
                  4.75h