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

Failed upgrade process com.liferay.layout.page.template.internal.upgrade.v1_1_0.UpgradeLayoutPrototype

    Details

      Description

      When you run database upgrade tool from version liferay-portal-6.2-ce-ga6b to liferay liferay-ce-portal-7.2.1-ga2 this error is throw:

      INFO - Completed com.liferay.layout.page.template.internal.upgrade.v1_1_0.UpgradeLayoutPrototype#upgradeLayoutPrototype in 91 ms
      2021-04-09 05:59:47.812 INFO [main][UpgradeProcess:107] Failed upgrade process com.liferay.layout.page.template.internal.upgrade.v1_1_0.UpgradeLayoutPrototype in 453 ms
      INFO - Failed upgrade process com.liferay.layout.page.template.internal.upgrade.v1_1_0.UpgradeLayoutPrototype in 453 ms
      2021-04-09 05:59:47.818 ERROR [main][ReleaseManagerOSGiCommands:147] 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:101)
                     at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:137)

        

      It is failing because although there is a createDate and modifiedDate columns in the LayoutPrototype table, they are null (likely from the version you're on not requiring them). I updated all of the rows to give them a timestamp value and the upgrade finished.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              rodrigo.jimeno Rodrigo Jimeno
              Participants of an Issue:
              Recent user:
              Rafaela Nascimento
              Engineering Assignee:
              Jürgen Kappler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                20 weeks ago

                  Packages

                  Version Package
                  7.4.1 CE GA2 DXP 7,4
                  Master