javax.mail.internet.AddressException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • It seems that jenkins is not able to use the email addresses from mercurial commits. Mercurial uses the Author field which has this format: "name surname <email@domain.com>". At same stage the < > are replaced by underlines. {code:none} ERROR: Local address contains control or whitespace javax.mail.internet.AddressException: Local address contains control or whitespace in string ``John Doe _johm.doe@acme.com_'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1213) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1091) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111) at hudson.tasks.Mailer.StringToAddress(Mailer.java:152) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:411) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:367) at hudson.tasks.MailSender.createFailureMail(MailSender.java:226) at hudson.tasks.MailSender.getMail(MailSender.java:153) at hudson.tasks.MailSender.execute(MailSender.java:99) at hudson.tasks.Mailer.perform(Mailer.java:115) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code}
    via by Sorin Sbarnea,
  • It seems that jenkins is not able to use the email addresses from mercurial commits. Mercurial uses the Author field which has this format: "name surname <email@domain.com>". At same stage the < > are replaced by underlines. {code:none} ERROR: Local address contains control or whitespace javax.mail.internet.AddressException: Local address contains control or whitespace in string ``John Doe _johm.doe@acme.com_'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1213) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1091) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111) at hudson.tasks.Mailer.StringToAddress(Mailer.java:152) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:411) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:367) at hudson.tasks.MailSender.createFailureMail(MailSender.java:226) at hudson.tasks.MailSender.getMail(MailSender.java:153) at hudson.tasks.MailSender.execute(MailSender.java:99) at hudson.tasks.Mailer.perform(Mailer.java:115) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code}
    via by Sorin Sbarnea,
    • javax.mail.internet.AddressException: Illegal whitespace in address in string ``foo@bar.com baz@bar.com'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:926) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:819) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:555) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:91) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:238) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:114) at hudson.tasks.MailSender.getMail(MailSender.java:104) at hudson.tasks.MailSender.execute(MailSender.java:64) at hudson.tasks.Mailer.perform(Mailer.java:54) at hudson.model.Build$RunnerImpl.post(Build.java:135) at hudson.model.Run.run(Run.java:562) at hudson.model.Build.run(Build.java:99) at hudson.model.Executor.run(Executor.java:61)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    jedcuajedcua
    2 times, last one,
    10 more bugmates