NullPointerException while sending workflow notification emails
Hello all! The community has been very helpful with past issues, so I figured I'd bring this one here as well - Perhaps you'll all have some ideas.
I've seen a lot of people with EMailNotificationService or various other workflow-email-related issues that are typically configuration errors resolved by adjusting the configs... however all of our configurations on the problem instance are cloned from an instance where email notifications are working. That said, I don't believe this is a configuration issue like the others that I've seen. The error is produced from an internal CQ jar that I can't seem to find documented.
Steps to produce:
- Edit a page
- Submit to our only workflow
- Result:
- SHOULD BE: Workflow is submitted and the submitting user + assigned group receives an email about the submission
- ACTUAL: The workflow is appears in the inbox correctly, but the emails are not sent out. The following error message is present in the logs:
Error while sending email. com.day.cq.workflow.impl.email.EMailNotificationService
java.lang.NullPointerException: null
at com.day.cq.workflow.impl.email.EMailNotificationService.sendNotification(EMailNotificationService.java:238)
at com.day.cq.workflow.impl.email.EMailNotificationService$EventProcessor.run(EMailNotificationService.java:551)
at java.lang.Thread.run(Thread.java:748)
As I mentioned, this author instance is cloned from an author instance where the configurations are identical, and the workflow emails are sending properly... So I'm at a loss for what might cause this. Any insight is appreciated, and I'm happy to work with suggested configuration adjustments if needed as this is on a staging environment clone.
Thanks,
Jared


