Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Views
Replies
Total Likes
The issue has been reported over multiple threads with a solution to restart the bundle.
Somehow we are not facing this issue.
Our config is placed under /apps/system/config/com.day.cq.mailer.DefaultMailService.config
In the old format
# Configuration created by Apache Sling JCR Installer
debug.email=B"true"
smtp.starttls=B"false"
oauth.flow=B"false"
smtp.host="abc.smail.com"
smtp.ssl=B"false"
from.address="abc@def.com"
smtp.port=I"25"
smtp.password="123"
smtp.user="abc@def.com"
Views
Replies
Total Likes
@aanchal-sikka Restarting the bundle works. But, we'll not have permission in actual envts to do this.
Views
Replies
Total Likes
Hi @Divya_T13
Do you know when does the issue start occurring that is lets say you have started instance and its working fine. Does it start occurring after sometime or what is the event?
Thanks,
Nupur
Views
Replies
Total Likes
Hi @Nupur_Jain
In my case, I have a workflow that includes a custom process step to send email notifications. It works fine after starting or restarting the instance, or after starting and stopping the "Day Communique 5 Mailer" bundle. But, the issue occurs after some time.
Views
Replies
Total Likes
Hi @Divya_T13 , The MessageGatewayService's lifecycle is container managed. If the service is fine after restarting the instance but stops working after a while, i will be looking in the bundles that is getting installed that forces a OSGI bundles refresh. Can you try the following debugging steps to confirm it that's true:
1. Make sure the Message Gateway Service is able to send emails.
2. Deploy the custom code on the instance, monitor the logs at this point to look for Service Unregister/Register events specifically the MessageGatewayService.
3. Test the Service to confirm if it broke. If not, repeat with another custom bundle.
Though time taking, that is the best shot at getting to the root cause. Good luck!
Regards,
Fani
Views
Replies
Total Likes
This issue appears to be related to the MessageGatewayService not properly initializing or retaining the configuration settings in AEM (Adobe Experience Manager). Here are some steps to help troubleshoot and potentially resolve the problem:
Ensure the Day CQ Mail Service (com.day.cq.cq-mailer) configuration in the Felix Console (/system/console/configMgr) is set up correctly:
The issue may stem from cached or stale configurations. Restarting the service resolves the problem temporarily because it forces the bundle to reinitialize. Automate or script the refresh to confirm:
rm -rf /crx-quickstart/repository/cache
The null values for messageGatewayService.getGateway(HtmlEmail.class) indicate a problem with how the service is being injected or accessed:
@Reference private MessageGatewayService messageGatewayService;
AEM 6.5 SP17 is relatively new, but Adobe might release hotfixes for this version. Check if there are any known issues or updates for your AEM instance. If needed, contact Adobe support.
Since restarting the instance or bundle temporarily resolves the issue, you can implement a health check or automated service monitor to detect and resolve failures in real-time. This avoids manual intervention.
Recreate the issue in a staging or development environment to confirm the behavior and test potential fixes.
If none of these steps resolve the issue, please share more specific logs or details about your environment and custom workflow setup for deeper analysis.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies