org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com''

Atlassian JIRA | Roger Barnes | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The Health Check tab in the Support Tools plugin accepts an additional email address to send to. When this is filled in, the health check fails to send because the comma separated list of recipients (plural) is deemed an invalid recipient (singular). Log (addresses redacted): {noformat} 2013-12-04 14:54:14,386 INFO [localhost-startStop-1] stash.mail-log Starting mail service 2013-12-04 15:05:35,248 ERROR [MailServiceSender:thread-1] stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com; subject: Receipt for health check data sent on 2013-12-04... org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com'' at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:108) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl$2.prepare(MailServiceImpl.java:346) ~[stash-service-impl-2.8.0-rc1.jar:na] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:206) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendNow(MailServiceImpl.java:168) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl$1.run(MailServiceImpl.java:129) ~[stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[stash-platform-2.8.0-rc1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_25] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: javax.mail.internet.AddressException: Illegal address at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:709) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.MimeMessageHelper.setTo(MimeMessageHelper.java:593) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:105) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 13 common frames omitted 2013-12-04 17:45:18,259 ERROR [MailServiceSender:thread-1] stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com; subject: Receipt for health check data sent on 2013-12-04... org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com'' at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:108) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl$2.prepare(MailServiceImpl.java:346) ~[stash-service-impl-2.8.0-rc1.jar:na] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:206) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendNow(MailServiceImpl.java:168) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl$1.run(MailServiceImpl.java:129) ~[stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[stash-platform-2.8.0-rc1.jar:na]{noformat}

    Atlassian JIRA | 3 years ago | Roger Barnes
    org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com''
  2. 0

    The Health Check tab in the Support Tools plugin accepts an additional email address to send to. When this is filled in, the health check fails to send because the comma separated list of recipients (plural) is deemed an invalid recipient (singular). Log (addresses redacted): {noformat} 2013-12-04 14:54:14,386 INFO [localhost-startStop-1] stash.mail-log Starting mail service 2013-12-04 15:05:35,248 ERROR [MailServiceSender:thread-1] stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com; subject: Receipt for health check data sent on 2013-12-04... org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com'' at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:108) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl$2.prepare(MailServiceImpl.java:346) ~[stash-service-impl-2.8.0-rc1.jar:na] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:206) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendNow(MailServiceImpl.java:168) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl$1.run(MailServiceImpl.java:129) ~[stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[stash-platform-2.8.0-rc1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_25] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: javax.mail.internet.AddressException: Illegal address at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:709) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.MimeMessageHelper.setTo(MimeMessageHelper.java:593) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:105) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 13 common frames omitted 2013-12-04 17:45:18,259 ERROR [MailServiceSender:thread-1] stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com; subject: Receipt for health check data sent on 2013-12-04... org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com'' at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:108) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl$2.prepare(MailServiceImpl.java:346) ~[stash-service-impl-2.8.0-rc1.jar:na] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:206) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendNow(MailServiceImpl.java:168) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl$1.run(MailServiceImpl.java:129) ~[stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[stash-platform-2.8.0-rc1.jar:na]{noformat}

    Atlassian JIRA | 3 years ago | Roger Barnes
    org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com''

    Root Cause Analysis

    1. javax.mail.internet.AddressException

      Illegal address

      at org.springframework.mail.javamail.MimeMessageHelper.parseAddress()
    2. Spring Context Support
      MimeMailMessage.setTo
      1. org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:709)[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      2. org.springframework.mail.javamail.MimeMessageHelper.setTo(MimeMessageHelper.java:593)[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      3. org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:105)[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      3 frames
    3. com.atlassian.stash
      MailServiceImpl$2.prepare
      1. com.atlassian.stash.internal.mail.MailServiceImpl$2.prepare(MailServiceImpl.java:346)[stash-service-impl-2.8.0-rc1.jar:na]
      1 frame
    4. Spring Context Support
      JavaMailSenderImpl.send
      1. org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352)[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      2. org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344)[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      2 frames
    5. com.atlassian.stash
      StateTransferringExecutor$StateTransferringRunnable.run
      1. com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:206)[stash-service-impl-2.8.0-rc1.jar:na]
      2. com.atlassian.stash.internal.mail.MailServiceImpl.sendNow(MailServiceImpl.java:168)[stash-service-impl-2.8.0-rc1.jar:na]
      3. com.atlassian.stash.internal.mail.MailServiceImpl$1.run(MailServiceImpl.java:129)[stash-service-impl-2.8.0-rc1.jar:na]
      4. com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68)[stash-platform-2.8.0-rc1.jar:na]
      4 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[na:1.7.0_25]
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[na:1.7.0_25]
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)[na:1.7.0_25]
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_25]
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_25]
      6. java.lang.Thread.run(Thread.java:724)[na:1.7.0_25]
      6 frames