Day CQ Mail Service giving error: Invalid mail service configuration
Hello Team,
We have implemented custom workflow step to send email notifications. When we deployed Day CQ Mail Service configs on Cloud dev instance, it worked properly. When we tested it second it failed and giving exception:
*ERROR* [JobHandler: /var/workflow/instances/server1303/2023-11-23/custom-page-activation_2:/content/hostplus-program/home/members/our-products-and-services/super/why-choose-hostplus] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204) [com.adobe.granite.workflow.core:2.1.104] at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:300) [com.adobe.granite.workflow.core:2.1.104] at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.3.8] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.3.8] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.3.8] at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.3.8] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: com.day.cq.mailer.MailingException: Invalid mail service configuration. at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:292) [com.day.cq.cq-mailer:5.4.22] at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:46) [com.day.cq.cq-mailer:5.4.22] at com.host
When I redeployed same config, it worked and again failed. When I did some research I found we need to restart "com.day.cq.cq-mailer" bundle. In cloud instance how to restart this bundle? Does anyone know the root cause of this problem? As restarting the bundle is not a ideal solution when it keeps happening.