javax.mail.internet.AddressException: Domain contains illegal character in string ``__developer1@xxx.net__''

Jenkins JIRA | Sergey Grigoriev | 4 years ago
  1. 0

    Jenkins email-ext plugin fails to send email, the error is Failed to create e-mail address for __developer1@xxx.net__ Failed to create e-mail address for __developer2@xxx.net__ Failed to create e-mail address for __developer1@xxx.net__ Failed to create e-mail address for __developer1@xxx.net__ (Names and domain are changed) Jan 13, 2013 7:15:56 PM hudson.plugins.emailext.ExtendedEmailPublisher addAddressesFromRecipientList WARNING: Could not create email address. javax.mail.internet.AddressException: Domain contains illegal character in string ``__developer1@xxx.net__'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1269) 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.plugins.emailext.EmailRecipientUtils.convertRecipientString(EmailRecipientUtils.java:60) at hudson.plugins.emailext.ExtendedEmailPublisher.addAddressesFromRecipientList(ExtendedEmailPublisher.java:687) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:508) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:297) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) at hudson.model.AbstractBuild$AbstractBuildExecution.perJan 13, 2013 7:15:56 PM hudson.plugins.emailext.ExtendedEmailPublisher addAddressesFromRecipientList WARNING: Could not create email address. javax.mail.internet.AddressException: Domain contains illegal character in string ``__developer1@xxx.net__'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1269) 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.plugins.emailext.EmailRecipientUtils.convertRecipientString(EmailRecipientUtils.java:60) at hudson.plugins.emailext.ExtendedEmailPublisher.addAddressesFromRecipientList(ExtendedEmailPublisher.java:687) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:508) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:297) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1587) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)formAllBuildSteps(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1587) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) First I thought is the problem is in email-ext plugin, but when I went to "Changes" tab and opened the page http://host/jenkins/user/Developer%201%20__developer1@xxx.net_/ (hostname changed) it showed Jenkins User Id: Developer 1 __developer1@xxx.net__ For unknown reason Jenkins adds a leading and trailing underscore to email address Environment Jenkins ver. 1.498 Jenkins Mercurial plugin 1.42 Jenkins Email Extension Plugin 2.25 Mercurial Distributed SCM (version 1.4.3) Ubuntu 10.04.4 LTS Java(TM) SE Runtime Environment (build 1.6.0_32-b05) Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode) We have a build cluster with a master and two slaves, this problem happened on the slave machine. When I type hg log on Jenkins job's workspace, then all changesets have correct email address without underscores, so it is not Mercurial configuration problem.

    Jenkins JIRA | 4 years ago | Sergey Grigoriev
    javax.mail.internet.AddressException: Domain contains illegal character in string ``__developer1@xxx.net__''
  2. 0

    Jenkins email-ext plugin fails to send email, the error is Failed to create e-mail address for __developer1@xxx.net__ Failed to create e-mail address for __developer2@xxx.net__ Failed to create e-mail address for __developer1@xxx.net__ Failed to create e-mail address for __developer1@xxx.net__ (Names and domain are changed) Jan 13, 2013 7:15:56 PM hudson.plugins.emailext.ExtendedEmailPublisher addAddressesFromRecipientList WARNING: Could not create email address. javax.mail.internet.AddressException: Domain contains illegal character in string ``__developer1@xxx.net__'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1269) 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.plugins.emailext.EmailRecipientUtils.convertRecipientString(EmailRecipientUtils.java:60) at hudson.plugins.emailext.ExtendedEmailPublisher.addAddressesFromRecipientList(ExtendedEmailPublisher.java:687) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:508) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:297) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) at hudson.model.AbstractBuild$AbstractBuildExecution.perJan 13, 2013 7:15:56 PM hudson.plugins.emailext.ExtendedEmailPublisher addAddressesFromRecipientList WARNING: Could not create email address. javax.mail.internet.AddressException: Domain contains illegal character in string ``__developer1@xxx.net__'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1269) 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.plugins.emailext.EmailRecipientUtils.convertRecipientString(EmailRecipientUtils.java:60) at hudson.plugins.emailext.ExtendedEmailPublisher.addAddressesFromRecipientList(ExtendedEmailPublisher.java:687) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:508) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:297) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1587) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)formAllBuildSteps(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1587) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) First I thought is the problem is in email-ext plugin, but when I went to "Changes" tab and opened the page http://host/jenkins/user/Developer%201%20__developer1@xxx.net_/ (hostname changed) it showed Jenkins User Id: Developer 1 __developer1@xxx.net__ For unknown reason Jenkins adds a leading and trailing underscore to email address Environment Jenkins ver. 1.498 Jenkins Mercurial plugin 1.42 Jenkins Email Extension Plugin 2.25 Mercurial Distributed SCM (version 1.4.3) Ubuntu 10.04.4 LTS Java(TM) SE Runtime Environment (build 1.6.0_32-b05) Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode) We have a build cluster with a master and two slaves, this problem happened on the slave machine. When I type hg log on Jenkins job's workspace, then all changesets have correct email address without underscores, so it is not Mercurial configuration problem.

    Jenkins JIRA | 4 years ago | Sergey Grigoriev
    javax.mail.internet.AddressException: Domain contains illegal character in string ``__developer1@xxx.net__''
  3. 0

    Jenkins issues - [JIRA] (JENKINS-16332) Leading and trailing underscores are added to commiters email address,

    nabble.com | 8 months ago
    javax.mail.internet.AddressException: Domain contains illegal character in string `` ''
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-16332] Leading and trailing underscores are added to commiters email address, unable to send build notification - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    javax.mail.internet.AddressException: Domain contains illegal character in string ``_ _''
  6. 0

    Hudson email ext plugin bug?

    Stack Overflow | 7 years ago
    javax.mail.internet.AddressException: Illegal address in string ``''

    4 unregistered visitors
    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. javax.mail.internet.AddressException

      Domain contains illegal character in string ``__developer1@xxx.net__''

      at javax.mail.internet.InternetAddress.checkAddress()
    2. JavaMail API
      InternetAddress.<init>
      1. javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1269)
      2. javax.mail.internet.InternetAddress.parse(InternetAddress.java:1091)
      3. javax.mail.internet.InternetAddress.parse(InternetAddress.java:633)
      4. javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111)
      4 frames
    3. Hudson Email Extension Plugin
      ExtendedEmailPublisher.perform
      1. hudson.plugins.emailext.EmailRecipientUtils.convertRecipientString(EmailRecipientUtils.java:60)
      2. hudson.plugins.emailext.ExtendedEmailPublisher.addAddressesFromRecipientList(ExtendedEmailPublisher.java:687)
      3. hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:508)
      4. hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:297)
      5. hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289)
      6. hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249)
      6 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.perform
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810)
      2 frames