javax.mail.internet.AddressException: Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL''

Atlassian JIRA | Mickaël Rémond | 1 decade ago
  1. 0

    We get an exception in the log when receiving mail: 2006-06-05 15:10:04,191 ERROR [service.services.mail.MailFetcherService] Throwable: javax.mail.internet.AddressException: Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL'' javax.mail.internet.AddressException: Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:903) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793) at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554) at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658) at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:483) at javax.mail.Message.getAllRecipients(Message.java:272) at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:498) at com.atlassian.mail.MailUtils.hasRecipient(MailUtils.java:249) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.canHandleMessage(AbstractMessageHandler.java:172) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:74) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) This is a spam mail, but it should be avoided however, as we cannot totally block the received mails.

    Atlassian JIRA | 1 decade ago | Mickaël Rémond
    javax.mail.internet.AddressException: Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL''
  2. 0

    We get an exception in the log when receiving mail: 2006-06-05 15:10:04,191 ERROR [service.services.mail.MailFetcherService] Throwable: javax.mail.internet.AddressException: Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL'' javax.mail.internet.AddressException: Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:903) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793) at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554) at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658) at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:483) at javax.mail.Message.getAllRecipients(Message.java:272) at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:498) at com.atlassian.mail.MailUtils.hasRecipient(MailUtils.java:249) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.canHandleMessage(AbstractMessageHandler.java:172) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:74) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) This is a spam mail, but it should be avoided however, as we cannot totally block the received mails.

    Atlassian JIRA | 1 decade ago | Mickaël Rémond
    javax.mail.internet.AddressException: Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL''
  3. 0

    [JRA-10356] AddressException: Illegal character in local name in string - Atlassian JIRA

    atlassian.com | 2 years ago
    javax.mail.internet.AddressException: Illegal character in local name in string `` ''
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JRA-10356] AddressException: Illegal character in local name in string - Atlassian JIRA

    atlassian.com | 8 months ago
    javax.mail.internet.AddressException: Illegal character in local name in string `` ''
  6. 0

    A user in support had their JIRA instance receiving an email with an address that java mail feels is invalid. This generates a MessageException in the handleMessage method of our email handlers. javax.mail.internet.AddressException: Illegal whitespace in address in string ``jira_gmitbrazil (APPLICATION)'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:900) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793) at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554) at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658) at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:483) at javax.mail.Message.getAllRecipients(Message.java:272) at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:498) at com.atlassian.mail.MailUtils.hasRecipient(MailUtils.java:254) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.canHandleMessage(AbstractMessageHandler.java:206) at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:55) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190) 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) The exception propagates up to the MailFetcherService where all we do is log the exception and leave the mail behind. In this case we really want to forward the message on to the forward address (if specified). The problem is that the canHandleMessage call is not inside the try/catch that looks for a message exception. See JSP-32493 for more details.

    Atlassian JIRA | 8 years ago | Dylan Etkin [Atlassian]
    javax.mail.internet.AddressException: Illegal whitespace in address in string ``jira_gmitbrazil (APPLICATION)''

    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

      Illegal character in local name in string ``http://vintagerolextoo.infoO_EMAIL''

      at javax.mail.internet.InternetAddress.checkAddress()
    2. JavaMail API
      MimeMessage.getAllRecipients
      1. javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:903)
      2. javax.mail.internet.InternetAddress.parse(InternetAddress.java:793)
      3. javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554)
      4. javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658)
      5. javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:483)
      6. javax.mail.Message.getAllRecipients(Message.java:272)
      7. javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:498)
      7 frames
    3. com.atlassian.mail
      MailUtils.hasRecipient
      1. com.atlassian.mail.MailUtils.hasRecipient(MailUtils.java:249)
      1 frame
    4. com.atlassian.jira
      MailFetcherService.run
      1. com.atlassian.jira.service.util.handler.AbstractMessageHandler.canHandleMessage(AbstractMessageHandler.java:172)
      2. com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:74)
      3. com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184)
      3 frames