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

Upgrading a 5.2 database to 6.1 with a manual selection Asset Publisher fails.

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4
    • Added to Fix Pack:
      Added

      Description

      Upgrading a 5.2 database to 6.1 with a manual selection Asset Publisher fails.

      Here is the log section and some debugging I added. In my case I was going from EE 5.2 SP3 to EE 6.1. I had this issue with a clean 5.2 db with only an asset publisher with a manual selection web content. No other data in the db, so should be easy to recreate. Based on the upgrade that fails, it's possible this will also happen with a 6.0 db.

      22:55:22,679 INFO  [UpgradeProcess:207] Upgrading com.liferay.portal.upgrade.v6_0_3.UpgradeAssetPublisher
      22:55:22,681 DEBUG [UpgradeAssetPublisher:79] upgradePreferences:selectionStyle: manual
      22:55:22,682 DEBUG [UpgradeAssetPublisher:89] assetEntryXmls: 1
      22:55:22,682 DEBUG [UpgradeAssetPublisher:91]    assetEntryXml: <?xml version="1.0"?>
      
      <asset>
              <assetEntryId>10196</assetEntryId>
              <assetEntryType>com.liferay.portlet.journal.model.JournalArticle</assetEntryType>
      </asset>
      22:55:22,683 DEBUG [UpgradeAssetPublisher:46] getAssetEntryXmls:document [email protected] [Document: name null]
      22:55:22,683 DEBUG [UpgradeAssetPublisherManualEntries:80] upgradeToAssetEntryUuidElement:rootElement
      22:55:22,683 DEBUG [UpgradeAssetPublisherManualEntries:81]    [email protected] [Element: <asset attributes: []/>]
      22:55:22,684 ERROR [MainServlet:201] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
      com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:58)
              at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1284)
              at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:198)
              at javax.servlet.GenericServlet.init(GenericServlet.java:160)
              at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:897)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:873)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:680)
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:213)
              at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:103)
              at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:56)
              at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:36)
              at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:81)
              at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:48)
              at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:119)
              at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:144)
              at com.liferay.portal.ee.license.StartupAction.doRun(Unknown Source)
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:52)
              ... 20 more
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:213)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:227)
              at com.liferay.portal.upgrade.UpgradeProcess_6_0_3.doUpgrade(UpgradeProcess_6_0_3.java:42)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
              ... 29 more
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.upgrade.util.UpgradeAssetPublisherManualEntries.upgradeToAssetEntryUuidElement(UpgradeAssetPublisherManualEntries.java:87)
              at com.liferay.portal.upgrade.v6_0_3.UpgradeAssetPublisher.getAssetEntryXmls(UpgradeAssetPublisher.java:51)
              at com.liferay.portal.upgrade.v6_0_3.UpgradeAssetPublisher.upgradePreferences(UpgradeAssetPublisher.java:95)
              at com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences.updatePortletPreferences(BaseUpgradePortletPreferences.java:273)
              at com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences.doUpgrade(BaseUpgradePortletPreferences.java:45)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
              ... 32 more
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ginson.ren Ginson Ren
              Reporter:
              barrie.selack Barrie Selack (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 18 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.10 EE GA1
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2