Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-77072

Use of Util causes startup listener to fail execution when service is not yet initialized

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0 DXP FP33, Master
    • Fix Version/s: None
    • Component/s: Forms
    • Fix Priority:
      3
    • OS:
      Mac OS X 10.9
    • JDK:
      Oracle Sun JDK 8
    • Application Servers:
      Apache Tomcat 8.0.x
    • Databases:
      MaxDB

      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>

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 year, 2 days ago