Workflow Notification Mailer Deactivated Due to Illegal Whitespace in Address in String During Inbound IMAP Processing



Error:
The Workflow Mailer goes down frequently with a status of System Deactivated with the following failure in the log file:


-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:1275287147:4785:1660034413934:209:EXCEPTION:[SVC-GSM-WFMLRSVC-2758650 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.onBusinessEvent(BusinessEvent)]:Successfully handled component event, oracle.apps.fnd.cp.gsc.SvcComponent.start, for component 10006
-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:1275287147:4785:1660034434801:210:UNEXPECTED:[SVC-GSM-WFMLRSVC-2758650-10006 : oracle.apps.fnd.wf.mailer.IMAPResponseHandler.processSingleMessage(Message)]:Problem reaching content in step {Writing to NID parser} -> javax.mail.internet.AddressException: Illegal whitespace in address in string ``Microsoft Exchange Server''
[Aug 9, 2022 8:40:35 AM -1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:1275287147:4785:1660034434801:210:ERROR:[SVC-GSM-WFMLRSVC-2758650-10006 : oracle.apps.fnd.wf.mailer.IMAPInboundProcessor.close()]:Connection to Store is closed



Reason:

There's a corrupted email in the IMAP inbox that the java mail parser cannot parse. In my case I saw a postmaster deleivery failure mail in IMAP mailbox INBOX.

Solution:

  • Stop the Workflow Mailer service. 
  • Log onto the email client and check the IMAP inbox for a mail message that is invalid or with incorrect mail
  • Move all invalid messages to the discard folder. 
  • Re-start the workflow mailer.
  • If required work with Exchange team to create rules to avoid those mails in INBOX.




If you like please follow and comment