Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-13558

MailingListCompiler trying to send email with empty "To"

XMLWordPrintable

      Somehow recipient.getEmail() is returning null - MailingListCompiler(229)

      2007-09-16 22:59:32,340 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@1db1db7[issue=com.atlassian.jira.issue.IssueImpl@11ee18e[id=12531,summary=Java 
      Developer - David Taylor,key=RCRT-227,created=2007-08-28 17:05:22.988,updated=2007-09-16 
      22:58:14.501,assignee=snguyen,reporter=<null>],remoteUser=snguyen,notificationType=All_Watchers,eventTypeId=6,templateId=6] 
      ERROR [atlassian.jira.mail.IssueMailQueueItem] 'To' is a required field
      java.lang.IllegalArgumentException: 'To' is a required field
      	at com.atlassian.mail.Email.<init>(Email.java:51)
      	at com.atlassian.jira.mail.Email.<init>(Email.java:18)
      	at com.atlassian.jira.mail.MailingListCompiler.createEmail(MailingListCompiler.java:297)
      	at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:249)
      	at com.atlassian.jira.mail.MailingListCompiler.access$200(MailingListCompiler.java:35)
      	at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:423)
      	at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:391)
      	at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendForEvent(MailingListCompiler.java:345)
      	at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:126)
      	at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167)
      	at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68)
      	at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23)
      	at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
      	at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      

      This may result in multiple notifications being sent out to users who have valid e-mail addresses that are in the same batch of e-mails being sent out for a notification. This is because or MailQueue currently is too stupid to only try resending the one failing address, but instead resends the mail to all recipients up to 10 times.

              dushan@atlassian.com Dushan Hanuska [Atlassian]
              nick.menere Nick Menere [Atlassian] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 6h
                  6h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h Time Not Required
                  5h