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

NPE occurs when upgrade process com.liferay.layout.page.template.internal.upgrade.v3_4_2.UpgradeLayoutPageTemplateStructureRel from 7.1 to master

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Page Templates
    • Labels:

      Description

      Step to reproduce:

      1. Start a 7.1
      2. Sign In
      3. Navigate to Page Fragments admin
      4. Add a new fragment collection > Add a new fragment
      5. Navigate to Page Templates admin
      6. Add a new page template collection
      7. Add a new content page template
      8. Add the new fragment to content page template
      9. Publish
      10. Add a page based on content page template
      11. Shutdown server
      12. Copy the data folder to master
      13. Upgrade to master

      Expected Results:
      The upgrade process should succeed.

      Actual Results:
      The upgrade process failed.

      2021-02-22 04:24:18.906 INFO  [main][UpgradeProcess:101] Upgrading com.liferay.layout.page.template.internal.upgrade.v3_4_2.UpgradeLayoutPageTemplateStructureRel
      2021-02-22 04:24:18.909 INFO  [main][UpgradeProcess:115] Failed upgrade process com.liferay.layout.page.template.internal.upgrade.v3_4_2.UpgradeLayoutPageTemplateStructureRel in 3 ms
      2021-02-22 04:24:18.921 ERROR [main][UpgradeStepRegistratorTracker:144] Failed upgrade process for module com.liferay.layout.page.template.service
      com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:109)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:127)
              at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor$UpgradeInfosRunnable.run(UpgradeExecutor.java:199)
              at com.liferay.portal.output.stream.container.internal.OutputStreamContainerFactoryTrackerImpl.runWithSwappedLog(OutputStreamContainerFactoryTrackerImpl.java:134)
              at com.liferay.portal.upgrade.internal.executor.SwappedLogExecutor.execute(SwappedLogExecutor.java:51)
              at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.executeUpgradeInfos(UpgradeExecutor.java:154)
              at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.execute(UpgradeExecutor.java:117)
              at com.liferay.portal.upgrade.internal.registry.UpgradeStepRegistratorTracker$UpgradeStepRegistratorServiceTrackerCustomizer.addingService(UpgradeStepRegistratorTracker.java:137)
              at com.liferay.portal.upgrade.internal.registry.UpgradeStepRegistratorTracker$UpgradeStepRegistratorServiceTrackerCustomizer.addingService(UpgradeStepRegistratorTracker.java:86)
              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:943)
              at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
              at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
              at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
              at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:903)
              at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:228)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469)
      

      Reproduced on:
      Upgrade From: 7.1.10-DXP19.
      Tomcat 9.0.40 + MySQL 5.7. Portal master GIT ID: d610360269471ce22dea81957a59d19a64492406.

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            yang.cao Yang Cao
            Participants of an Issue:
            Recent user:
            Yang Cao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              29 weeks, 4 days ago

                Packages

                Version Package
                Master