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

Staging NPE happens intermittently on startup

    Details

      Description

      Failing batches:
      functional-smoke-tomcat90-mysql57-jdk8
      functional-smoke-tomcat90-mysql57-jdk11_open

      junit.framework.AssertionFailedError: 
      Unable to register portal instance {mvccVersion=1, companyId=20096, accountId=20098, webId=liferay.com, key=rAH4Fscoplz1O5aGDP4gZg==, mx=liferay.com, homeURL=, logoId=0, system=false, maxUsers=0, active=true}
      java.lang.NullPointerException
      	at com.liferay.exportimport.internal.staging.StagingImpl.addModelToChangesetCollection(StagingImpl.java:231)
      	at com.liferay.staging.internal.model.listener.StagingModelListenerImpl.onAfterCreate(StagingModelListenerImpl.java:43)
      	at com.liferay.layout.admin.web.internal.model.listener.LayoutPageTemplateEntryStagingModelListener.onAfterCreate(LayoutPageTemplateEntryStagingModelListener.java:37)
      	at com.liferay.layout.admin.web.internal.model.listener.LayoutPageTemplateEntryStagingModelListener.onAfterCreate(LayoutPageTemplateEntryStagingModelListener.java:29)
      	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:548)
      	at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.addLayoutPageTemplateEntry(LayoutPageTemplateEntryLocalServiceImpl.java:188)
      	at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.addLayoutPageTemplateEntry(LayoutPageTemplateEntryLocalServiceImpl.java:815)
      	at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.addLayoutPageTemplateEntry(LayoutPageTemplateEntryLocalServiceImpl.java:108)
      	at java.base/jdk.

      Example of this failure: https://github.com/brianchandotcom/liferay-portal/pull/79106#issuecomment-537351667

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.lee Brian Lee
              Reporter:
              brian.lee Brian Lee
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 14 weeks ago

                  Packages

                  Version Package
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.10 DXP GA1
                  Master