Details
Description
NullPointerException is raised by implementation of PortalInstanceLifecycleListener that calls <code>DDMStructureLocalServiceUtil.addStructure</code>. The listener is triggered before DDMStructureVersionLocalService has been fully initialized, when it shouldn't have been activated due to (cascading) component dependencies not being activated yet. Use of Util class in <code>https://github.com/liferay/liferay-portal/blame/master/modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/model/impl/DDMStructureVersionImpl.java#L43</code> could be root cause of the issue.
Here's full stack of the issue:
<code>https://gist.github.com/jasonmed/de5c29fe44961cd76ee91397b2184544</code>