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

Unable to upgrade to 7 from 6.1.x and below if you have subscriptions to JournalArticle

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 Alpha 2, 7.0.0 Alpha 3
    • Fix Version/s: 7.0.0 Alpha 3
    • Component/s: WCM, WCM > Upgrade
    • Labels:
      None

      Description

      Steps to reproduce it:

      1. Startup a 6.1.x portal
      2. Subscribe to journal articles
      3. Shutdown the portal
      4. Upgrade to 7.

      You will get the following exception:

       16:32:53,415 ERROR [localhost-startStop-1][MainServlet:238] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.RuntimeException: Unable to get class name from id 0
      com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.RuntimeException: Unable to get class name from id 0
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:85)
              at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1317)
              at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:235)
              at javax.servlet.GenericServlet.init(GenericServlet.java:158)
              at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5266)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5554)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1912)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.RuntimeException: Unable to get class name from id 0
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:171)
              at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:179)
              at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:151)
              at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:133)
              at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:164)
              at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:81)
              at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:142)
              at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:176)
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:79)
              ... 19 more
      Caused by: java.lang.RuntimeException: Unable to get class name from id 0
              at com.liferay.portal.util.PortalImpl.getClassName(PortalImpl.java:1500)
              at com.liferay.portal.util.PortalUtil.getClassName(PortalUtil.java:569)
              at com.liferay.portal.upgrade.v7_0_0.UpgradeSubscription.getGroupId(UpgradeSubscription.java:69)
              at com.liferay.portal.upgrade.v7_0_0.UpgradeSubscription.updateSubscriptionGroupId(UpgradeSubscription.java:153)
              at com.liferay.portal.upgrade.v7_0_0.UpgradeSubscription.updateSubscriptionGroupIds(UpgradeSubscription.java:185)
              at com.liferay.portal.upgrade.v7_0_0.UpgradeSubscription.doUpgrade(UpgradeSubscription.java:58)
              at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:168)
              ... 27 more
      Stopping the server due to unexpected startup errors
      

      Technical notes:
      UpgradeSubscription need that className record for com.liferay.portlet.journal.model.JournalFolder had been created but it had not been created yet

        Attachments

          Activity

            People

            • Assignee:
              lu.liu Lu Liu
              Reporter:
              alberto.chaparro Alberto Chaparro
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 40 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 Alpha 3