Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7057

Invalid Illegal email address exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • email-ext-plugin
    • None

      The email address I have configured are very simple, just 4 email addresses:
      email1@gmail.com email2@gmail.com email3@gmail.com
      like that. It used to work, however now I'm seeing this. At the least it appears to be a bug in javax.mail as the the error is nearly useless (as usual). But perhaps email-ext to sanitise the addresses first and give a more helpful error?

      23/07/2010 11:03:06 PM hudson.plugins.emailext.ExtendedEmailPublisher addAddress
      WARNING: Could not create email address.
      javax.mail.internet.AddressException: Illegal address in string ``''
              at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:94)
              at hudson.plugins.emailext.ExtendedEmailPublisher.addAddress(ExtendedEmailPublisher.java:353)
              at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:277)
              at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:227)
              at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:219)
              at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:180)
              at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
              at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
              at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
              at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:640)
              at hudson.model.Run.run(Run.java:1299)
              at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:318)
              at hudson.model.ResourceController.execute(ResourceController.java:88)
              at hudson.model.Executor.run(Executor.java:129)
      

            ashlux ashlux
            antonystubbs antonystubbs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: