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

DDMStructure Exceptions on Upgrade to 6.2.X

    Details

    • Fix Priority:
      4

      Description

      When attempting to upgrade to 6.2.X, a DDMStructure exception occurs during the upgrade process. Possibly because of the way the structure editor changed, it also changes the way the data is written to the database (different from previous versions).

      Steps to Reproduce:

      1. Start a Previous Portal Version (eg. 6.1.X EE)
      2. Add a structure
      3. Add a template (based on the structure)
      4. Add a web content (based on the structure)
      5. Shutdown the server
      6. Upgrade to 6.2.X
        • The following stacktrace will occur during server startup:
      22:16:32,699 ERROR [pool-2-thread-1][MainServlet:215] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the key {groupId=10148, structureKey=10406}
      com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the key {groupId=10148, structureKey=10406}
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:58)
              at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1254)
              at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:212)
              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:895)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
              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:1585)
              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.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the key {groupId=10148, structureKey=10406}
              at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:61)
              at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:110)
              at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:76)
              at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:46)
              at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:145)
              at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:65)
              at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:237)
              at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:190)
              at com.liferay.portal.events.StartupAction.run(StartupAction.java:52)
              ... 20 more
      Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the key {groupId=10148, structureKey=10406}
              at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:61)
              at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:66)
              at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:42)
              at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
              ... 28 more
      Caused by: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the key {groupId=10148, structureKey=10406}
              at com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistenceImpl.findByG_S(DDMStructurePersistenceImpl.java:4631)
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.checkStructure(JournalArticleLocalServiceImpl.java:2705)
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.checkStructure(JournalArticleLocalServiceImpl.java:551)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:162)
              at $Proxy205.checkStructure(Unknown Source)
              at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.checkStructure(JournalArticleLocalServiceUtil.java:382)
              at com.liferay.portal.verify.VerifyJournal.doVerify(VerifyJournal.java:166)
              at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
              ... 31 more
      Stopping the server due to unexpected startup errors
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 29 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.0 CE M4