java.lang.IllegalArgumentException: One of 'To', 'CC' or 'BCC' is required

JIRA | Benjamin Dombrowsky | 3 years ago
  1. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-370].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}I try in a transition to an email sent to a custom field from type group picker. My syntax is "customfield_10700" and and this does not work. In another case i try it with "group:Groupname" and a user picker field "customfield_10701". This works well. Is it possible to send a notification to this custom field (Group Picker (single group))? I get the following error message: {code} Exception in thread "Thread-677" java.lang.IllegalArgumentException: One of 'To', 'CC' or 'BCC' is required at com.atlassian.mail.Email.<init>(Email.java:65) at sun.reflect.GeneratedConstructorAccessor1119.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:198) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail.sendMail(SendCustomEmail.groovy:299) at sun.reflect.GeneratedMethodAccessor4086.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail.this$dist$invoke$1(SendCustomEmail.groovy) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail$1.methodMissing(SendCustomEmail.groovy) at sun.reflect.GeneratedMethodAccessor4085.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:811) at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1103) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail$1.run(SendCustomEmail.groovy:331) at java.lang.Thread.run(Unknown Source) {code} Many thanks in advance! Regards Benjamin Dombrowsky

    JIRA | 3 years ago | Benjamin Dombrowsky
    java.lang.IllegalArgumentException: One of 'To', 'CC' or 'BCC' is required
  2. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-370].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}I try in a transition to an email sent to a custom field from type group picker. My syntax is "customfield_10700" and and this does not work. In another case i try it with "group:Groupname" and a user picker field "customfield_10701". This works well. Is it possible to send a notification to this custom field (Group Picker (single group))? I get the following error message: {code} Exception in thread "Thread-677" java.lang.IllegalArgumentException: One of 'To', 'CC' or 'BCC' is required at com.atlassian.mail.Email.<init>(Email.java:65) at sun.reflect.GeneratedConstructorAccessor1119.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:198) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail.sendMail(SendCustomEmail.groovy:299) at sun.reflect.GeneratedMethodAccessor4086.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail.this$dist$invoke$1(SendCustomEmail.groovy) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail$1.methodMissing(SendCustomEmail.groovy) at sun.reflect.GeneratedMethodAccessor4085.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:811) at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1103) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail$1.run(SendCustomEmail.groovy:331) at java.lang.Thread.run(Unknown Source) {code} Many thanks in advance! Regards Benjamin Dombrowsky

    JIRA | 3 years ago | Benjamin Dombrowsky
    java.lang.IllegalArgumentException: One of 'To', 'CC' or 'BCC' is required
  3. 0

    A user in crowd can have no e-mail-address configured. If a user without an emailaddress is included in the notification scheme, the message jira wants to send ends up in the error queue. The following error comes from the jira logfiles. The problem is, that the e-mail _is_ sent to all the other users in the notification scheme. They end up being e-mailbombed because jira did not stop trying to mail this message. A shutdown/restart of tomcat emptied the mail queue of jira for now. 2007-09-10 15:19:08,494 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@ca8ad4[issue=com.atlassian.jira.issue.IssueImpl@e72595[id=12566,summary=Instrument Object implementation,key=AAA-7,created=2007-09-06 15:46:45.415,updated=2007-09-10 14:56:48.001,assignee=pietje,reporter=puk],remoteUser=pietje,notificationType=Project_Role,eventTypeId=2,templateId=2] 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:284) at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:236) at com.atlassian.jira.mail.MailingListCompiler.access$200(MailingListCompiler.java:35) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:405) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:378) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendNoLevelsIgnoreGroup(MailingListCompiler.java:359) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendToAll(MailingListCompiler.java:354) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:118) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.web.action.admin.MailQueueAdmin.doExecute(MailQueueAdmin.java:38) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:209) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2007-09-10 15:19:08,495 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@ca8ad4[issue=com.atlassian.jira.issue.IssueImpl@e72595[id=12566,summary=Instrument Object implementation,key=AAA-7,created=2007-09-06 15:46:45.415,updated=2007-09-10 14:56:48.001,assignee=pietje,reporter=puk],remoteUser=pietje,notificationType=Project_Role,eventTypeId=2,templateId=2] ERROR [atlassian.mail.queue.MailQueueImpl] Error occurred in sending e-mail: com.atlassian.jira.mail.IssueMailQueueItem@ca8ad4[issue=com.atlassian.jira.issue.IssueImpl@e72595[id=12566,summary=Instrument Object implementation,key=AAA-7,created=2007-09-06 15:46:45.415,updated=2007-09-10 14:56:48.001,assignee=pietje,reporter=puk],remoteUser=pietje,notificationType=Project_Role,eventTypeId=2,templateId=2] com.atlassian.mail.MailException: 'To' is a required field at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:178) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.web.action.admin.MailQueueAdmin.doExecute(MailQueueAdmin.java:38) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:209) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: 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:284) at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:236) at com.atlassian.jira.mail.MailingListCompiler.access$200(MailingListCompiler.java:35) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:405) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:378) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendNoLevelsIgnoreGroup(MailingListCompiler.java:359) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendToAll(MailingListCompiler.java:354) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:118) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167) ... 57 more

    Atlassian JIRA | 9 years ago | Ronald Spierenburg
    java.lang.IllegalArgumentException: 'To' is a required field
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Somehow recipient.getEmail() is returning null - MailingListCompiler(229) {noformat} 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) {noformat} 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.

    Atlassian JIRA | 9 years ago | Nick Menere [Atlassian]
    java.lang.IllegalArgumentException: 'To' is a required field
  6. 0

    Exceptions of the following form are occuring on c.a.c: {noformat} [atlassian.core.task.AbstractErrorQueuedTaskQueue] handleException java.lang.IllegalArgumentE xception: '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.confluence.mail.template.PreRenderedMailNotificationQueueItem.createMailObject(PreRenderedMailNotificationQueueItem.java:93) at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.send(AbstractMailNotificationQueueItem.java:103) at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.send(PreRenderedMailNotificationQueueItem.java:88) at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.execute(AbstractMailNotificationQueueItem.java:96) at com.atlassian.core.task.AbstractErrorQueuedTaskQueue$TaskDecorator.execute(AbstractErrorQueuedTaskQueue.java:107) at com.atlassian.core.task.AbstractTaskQueue.flush(AbstractTaskQueue.java:45) at com.atlassian.core.task.AbstractErrorQueuedTaskQueue.flush(AbstractErrorQueuedTaskQueue.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165) at $Proxy45.flush(Unknown Source) at com.atlassian.quartz.jobs.TaskQueueFlushJob.doExecute(TaskQueueFlushJob.java:27) at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:87) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90) at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:44) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {noformat} Looks like some mail tasks may not have the to: field set appropriately. This might be a valid exception, but it shouldn't spam the logs.

    Atlassian JIRA | 9 years ago | Christopher Owen [Atlassian]
    java.lang.IllegalArgumentException: 'To' is a required field

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      One of 'To', 'CC' or 'BCC' is required

      at com.atlassian.mail.Email.<init>()
    2. com.atlassian.mail
      Email.<init>
      1. com.atlassian.mail.Email.<init>(Email.java:65)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.GeneratedConstructorAccessor1119.newInstance(Unknown Source)
      2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      3. java.lang.reflect.Constructor.newInstance(Unknown Source)
      3 frames
    4. Groovy
      AbstractCallSite.callConstructor
      1. org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
      2. org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:198)
      3 frames
    5. com.onresolve.jira
      SendCustomEmail.sendMail
      1. com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail.sendMail(SendCustomEmail.groovy:299)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4086.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    7. Groovy
      ScriptBytecodeAdapter.invokeMethodOnCurrentN
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054)
      4. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
      4 frames
    8. com.onresolve.jira
      SendCustomEmail$1.methodMissing
      1. com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail.this$dist$invoke$1(SendCustomEmail.groovy)
      2. com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail$1.methodMissing(SendCustomEmail.groovy)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4085.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    10. Groovy
      AbstractCallSite.callCurrent
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      2. groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:811)
      3. groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1103)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
      6. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
      7. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
      7 frames
    11. com.onresolve.jira
      SendCustomEmail$1.run
      1. com.onresolve.jira.groovy.canned.workflow.postfunctions.SendCustomEmail$1.run(SendCustomEmail.groovy:331)
      1 frame
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame