Legacy Knowledge Base
Published Jul. 2, 2025

DXP fails to send email notification after new form entry is added using headless API

Written By

Giulianna Munoa

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Creating a new form entry using headless API fails to send a new email notification
  • New entries are added but no email notification is sent
  • Following logs are shown:
2021-09-16 17:15:35.377 ERROR [http-nio-8080-exec-1][DDMFormEmailNotificationSender:99] Unable to send form email
 java.lang.NullPointerException
 at com.liferay.dynamic.data.mapping.internal.notification.DDMFormEmailNotificationSender.getViewFormEntriesURL(DDMFormEmailNotificationSender.java:428)
 at com.liferay.dynamic.data.mapping.internal.notification.DDMFormEmailNotificationSender.populateParameters(DDMFormEmailNotificationSender.java:491)
 at com.liferay.dynamic.data.mapping.internal.notification.DDMFormEmailNotificationSender.createTemplate(DDMFormEmailNotificationSender.java:141)
 at com.liferay.dynamic.data.mapping.internal.notification.DDMFormEmailNotificationSender.getEmailBody(DDMFormEmailNotificationSender.java:179)
 at com.liferay.dynamic.data.mapping.internal.notification.DDMFormEmailNotificationSender.createMailMessage(DDMFormEmailNotificationSender.java:117)
 at com.liferay.dynamic.data.mapping.internal.notification.DDMFormEmailNotificationSender.sendEmailNotification(DDMFormEmailNotificationSender.java:93)
 at com.liferay.dynamic.data.mapping.service.impl.DDMFormInstanceRecordLocalServiceImpl.addFormInstanceRecord(DDMFormInstanceRecordLocalServiceImpl.java:165)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)

 

Environment

  • DXP 7.2 SP4/FP11

 

Resolution

  • Reference to LPS-139879 and open a support ticket for hotfix generation.

 

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base