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

Resource importer is using the Journal Structure and Templates API instead of DDM

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE M3, 6.2.0 CE M4
    • Fix Version/s: 6.2.0 CE M5
    • Labels:
    • Environment:
      Tomcat 7.0.27 + MySQL 5. Portal 6.2.x GIT ID: 9dfd80978349ec0804e9245c80d41275cab0a06a.
      Plugins 6.2.x GIT ID: de5c6d7ccdc0a49f4fb8a7de0c7be4f6eaed80c5.

      Description

      There are errors after deploying welcome theme. This does not happen on ee-6.1.x.

      Steps to reproduce:

      1. Start up Liferay
      2. Deploy welcome-theme
      3. Deploy resources-importer-web
        • The following will display. If the user hits Liferay, the landing page looks the same as if welcome theme had not been deployed.
      20:04:28,372 INFO  [pool-2-thread-3][ThemeHotDeployListener:87] Registering themes for welcome-theme
      20:04:29,137 INFO  [pool-2-thread-3][ThemeHotDeployListener:98] 1 theme for welcome-theme is available for use
      20:04:30,696 ERROR [liferay/hot_deploy-1][SerialDestination:67] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={command=deploy, companyId=0, servletContextName=welcome-theme}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the key {groupId=10190, structureKey=WELCOME-CONTENT-STRUCTURE}
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:31)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
              at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:64)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:675)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:586)
              at java.lang.Thread.run(Thread.java:722)
      Caused by: com.liferay.portlet.dynamicdatamapping.NoSuchStructureException: No DDMStructure exists with the key {groupId=10190, structureKey=WELCOME-CONTENT-STRUCTURE}
              at com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistenceImpl.findByG_S(DDMStructurePersistenceImpl.java:4631)
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validate(JournalArticleLocalServiceImpl.java:3576)
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validate(JournalArticleLocalServiceImpl.java:3660)
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.addArticle(JournalArticleLocalServiceImpl.java:194)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:162)
              at $Proxy206.addArticle(Unknown Source)
              at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.addArticle(JournalArticleLocalServiceUtil.java:292)
              at com.liferay.resourcesimporter.util.FileSystemImporter.doAddJournalArticles(FileSystemImporter.java:447)
              at com.liferay.resourcesimporter.util.ResourceImporter.addJournalArticles(ResourceImporter.java:91)
              at com.liferay.resourcesimporter.util.FileSystemImporter.doAddJournalTemplates(FileSystemImporter.java:514)
              at com.liferay.resourcesimporter.util.ResourceImporter.addJournalTemplates(ResourceImporter.java:150)
              at com.liferay.resourcesimporter.util.FileSystemImporter.doAddJournalStructures(FileSystemImporter.java:481)
              at com.liferay.resourcesimporter.util.ResourceImporter.addJournalStructures(ResourceImporter.java:121)
              at com.liferay.resourcesimporter.util.FileSystemImporter.setupAssets(FileSystemImporter.java:745)
              at com.liferay.resourcesimporter.util.FileSystemImporter.doImportResources(FileSystemImporter.java:530)
              at com.liferay.resourcesimporter.util.ResourceImporter.importResources(ResourceImporter.java:35)
              at com.liferay.resourcesimporter.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:166)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
              ... 5 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chiu Brian Chiu (Inactive)
              Reporter:
              brian.chiu Brian Chiu (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 29 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.0 CE M5