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

Unable to upgrade journal articles to master using sharding

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce
      1- Configure Portal 6.1GA2 for using sharding
      2- Startup the portal server
      3- Create a new instance from control panel
      4- Shutdown the portal
      5- Configure master for using sharding pointing out to the previous dtabases
      6- Startup master server

      The following exception will be displayed:

      17:01:26,405 INFO  [pool-2-thread-1][UpgradeProcess:164] Upgrading com.liferay.portal.upgrade.v7_0_0.UpgradeJournal
      17:01:28,938 ERROR [pool-2-thread-1][UpgradeJournal:177] Unable to create the basic web content structure
      17:01:28,961 ERROR [pool-2-thread-1][MainServlet:206] 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:75)
      	at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1237)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:203)
      	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:662)
      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:170)
      	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:167)
      	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:119)
      	at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:99)
      	at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:148)
      	at com.liferay.portal.events.StartupHelper$$FastClassByCGLIB$$d389986b.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
      	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	at com.liferay.portal.dao.shard.advice.ShardGloballyAdvice.invoke(ShardGloballyAdvice.java:57)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
      	at com.liferay.portal.events.StartupHelper$$EnhancerByCGLIB$$81dc6ec2.upgradeProcess(<generated>)
      	at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:73)
      	at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:138)
      	at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:145)
      	at com.liferay.portal.events.StartupAction.run(StartupAction.java:69)
      	... 20 more
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:170)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:184)
      	at com.liferay.portal.upgrade.UpgradeProcess_7_0_0.doUpgrade(UpgradeProcess_7_0_0.java:46)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:167)
      	... 38 more
      Caused by: java.lang.NullPointerException
      	at com.liferay.portal.upgrade.v7_0_0.UpgradeJournal.getRoleId(UpgradeJournal.java:550)
      	at com.liferay.portal.upgrade.v7_0_0.UpgradeJournal.addDDMStructure(UpgradeJournal.java:171)
      	at com.liferay.portal.upgrade.v7_0_0.UpgradeJournal.addBasicWebContentStructureAndTemplate(UpgradeJournal.java:101)
      	at com.liferay.portal.upgrade.v7_0_0.UpgradeJournal.updateJournalArticles(UpgradeJournal.java:670)
      	at com.liferay.portal.upgrade.v7_0_0.UpgradeJournal.updateBasicWebContentStructure(UpgradeJournal.java:622)
      	at com.liferay.portal.upgrade.v7_0_0.UpgradeJournal.doUpgrade(UpgradeJournal.java:364)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:167)
      	... 41 more
      Stopping the server due to unexpected startup errors
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alberto.chaparro Alberto Chaparro
              Reporter:
              alberto.chaparro Alberto Chaparro
              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:
                7 years, 28 weeks, 1 day ago

                  Packages

                  Version Package