"javax.mail.internet.AddressException: Illegal address" happens intermittently when submitting forms
AEM 6.5, SPA, Angular 9, Bootstrap 4
AEM Forms packages:
adobe-aemfd-linux-pkg-6.0.1120.zip
adobe-aemfd-compat-pkg-2.0.48.zip
Sometimes a submission fails for no obvious reason in the UI. When we look in error.log, we see errors about an "Illegal address". We've been unable to come up with steps to reproduce the issue as it happens intermittently across forms. Email addresses used for the form's TO and FROM fields are correctly formatted. AEM mail server configuration confirmed to be correct by Adobe support. Stacktrace:
31.12.2024 08:49:14.161 *ERROR* [IP removed [1735652954103] POST /path/to/form/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.MailSubmitActionService Could not create emailIllegal address javax.mail.internet.AddressException: Illegal address at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:122) at com.adobe.aemds.guide.internal.impl.utils.GuideEmail.createEmail(GuideEmail.java:122) at com.adobe.aemds.guide.service.impl.MailSubmitActionService.submit(MailSubmitActionService.java:80)
- Has anybody else seen this behavior?
- This seems like a symptom of some other root cause. Is there something non-obvious I should be looking for? Other AEM logs besides error.log? Something on the mail server side? Any troubleshooting tips?