Details

    • Fix Priority:
      4

      Description

      I see my schemaVersion for ddm upgrade is 1.0.0-step-2, so I run

      upgrade:execute com.liferay.dynamic.data.mapping.service
      

      which prints messages in both gogo shell, and the logs. Here's the messages for gogo:

      g! upgrade:execute com.liferay.dynamic.data.mapping.service
      INFO - Upgrading com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping
      INFO - Starting com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#setUpClassNameIds
      INFO - Completed com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#setUpClassNameIds in 16 ms
      INFO - Starting com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeExpandoStorageAdapter
      INFO - Completed com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeExpandoStorageAdapter in 23 ms
      INFO - Starting com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeStructuresAndAddStructureVersionsAndLayouts
      INFO - Completed com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeStructuresAndAddStructureVersionsAndLayouts in 12876 ms
      INFO - Completed upgrade process com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping in 12922ms
      gogo: RuntimeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
      g!
      

      and in the logs:

      15:13:37,470 INFO  [Thread-46][UpgradeProcess:82] Upgrading com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping
      15:13:37,473 INFO  [Thread-46][LoggingTimer:70] Starting com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#setUpClassNameIds
      15:13:37,489 INFO  [Thread-46][LoggingTimer:38] Completed com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#setUpClassNameIds in 16 ms
      15:13:37,490 INFO  [Thread-46][LoggingTimer:70] Starting com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeExpandoStorageAdapter
      15:13:37,514 INFO  [Thread-46][LoggingTimer:38] Completed com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeExpandoStorageAdapter in 23 ms
      15:13:37,515 INFO  [Thread-46][LoggingTimer:70] Starting com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeStructuresAndAddStructureVersionsAndLayouts
      15:13:50,391 INFO  [Thread-46][LoggingTimer:38] Completed com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping#upgradeStructuresAndAddStructureVersionsAndLayouts in 12876 ms
      15:13:50,392 INFO  [Thread-46][UpgradeProcess:97] Completed upgrade process com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping in 12922ms
      
      

      There's a few issues here.

      1.) The log doesn't show the exception, it gives you no hint that your upgrade failed.
      2.) Neither log shows me where/why/how the failure happened, I see an NPE, but where? Doing what?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 24 weeks, 3 days ago

                  Packages

                  Version Package