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

    • Bug
    • Status: Selected for Development
    • Resolution: Unresolved
    • 7.0.0 DXP FP33
    • None
    • Forms
    • 3
    • Mac OS X 10.9
    • Oracle Sun JDK 8
    • Apache Tomcat 8.0.x
    • 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

            support-lep@liferay.com SE Support
            igor.arouca Igor Arouca
            André Farias André Farias
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              2 years, 9 weeks, 3 days ago

              Packages

                Version Package