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

Import failed with com.liferay.portlet.dynamicdatamapping.StorageFieldRequiredException: Required field value is not present for es_ES error

    Details

    • Fix Priority:
      3

      Description

      Not reproducible in master because LPS-66971 modifies JournalArticleLocalServiceImpl.validateDDMStructureFields.
      More info, see: https://github.com/brianchandotcom/liferay-portal/pull/41391


      Import failed with com.liferay.portlet.dynamicdatamapping.StorageFieldRequiredException: Required field value is not present for es_ES error

      Error is produced with old webcontents upgraded from 6.0 that don't have "language-id" attribute, more info see: LPS-67429
      Site must be configured with a locale different to "en_US"

      Steps to Reproduce

      1. Create a site and configure it with default language Spanish (es_ES)
      2. Go to web content section and import attached LAR:
      3. Following exception is thrown
        17:15:30,372 ERROR [liferay/background_task-2][BackgroundTaskMessageListener:133] Unable to execute background task
        com.liferay.portal.kernel.lar.PortletDataException: com.liferay.portlet.dynamicdatamapping.StorageFieldRequiredException: Required field value is not present for es_ES
        	at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:175)
        	at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:340)
        	at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:330)
        	at com.liferay.portlet.journal.lar.JournalPortletDataHandler.doImportData(JournalPortletDataHandler.java:304)
        	at com.liferay.portal.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:327)
        	at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:191)
        	at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:1028)
        	at com.liferay.portal.lar.PortletImporter.doImportPortletInfo(PortletImporter.java:543)
        	at com.liferay.portal.lar.PortletImporter.importPortletInfo(PortletImporter.java:210)
        	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importPortletInfo(LayoutLocalServiceImpl.java:1895)
        	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importPortletInfo(LayoutLocalServiceImpl.java:1963)
        	at sun.reflect.GeneratedMethodAccessor1650.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
        	at com.sun.proxy.$Proxy630.importPortletInfo(Unknown Source)
        	at com.liferay.portal.service.LayoutLocalServiceWrapper.importPortletInfo(LayoutLocalServiceWrapper.java:1436)
        	at sun.reflect.GeneratedMethodAccessor1650.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
        	at com.sun.proxy.$Proxy631.importPortletInfo(Unknown Source)
        	at sun.reflect.GeneratedMethodAccessor1650.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
        	at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:182)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:141)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
        	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
        	at com.sun.proxy.$Proxy38.importPortletInfo(Unknown Source)
        	at com.liferay.portal.service.LayoutLocalServiceUtil.importPortletInfo(LayoutLocalServiceUtil.java:1385)
        	at com.liferay.portal.lar.backgroundtask.PortletImportBackgroundTaskExecutor.execute(PortletImportBackgroundTaskExecutor.java:61)
        	at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:57)
        	at com.liferay.portal.backgroundtask.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:108)
        	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
        	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
        	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
        	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
        	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
        	at java.lang.Thread.run(Thread.java:745)
        Caused by: com.liferay.portlet.dynamicdatamapping.StorageFieldRequiredException: Required field value is not present for es_ES
        	at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validateDDMStructureFields(JournalArticleLocalServiceImpl.java:7172)
        	at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validateDDMStructureFields(JournalArticleLocalServiceImpl.java:7197)
        	at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validate(JournalArticleLocalServiceImpl.java:7023)
        	at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.validate(JournalArticleLocalServiceImpl.java:7121)
        	at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.addArticle(JournalArticleLocalServiceImpl.java:335)
        	at sun.reflect.GeneratedMethodAccessor1745.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
        	at com.sun.proxy.$Proxy499.addArticle(Unknown Source)
        	at com.liferay.portlet.journal.service.JournalArticleLocalServiceWrapper.addArticle(JournalArticleLocalServiceWrapper.java:458)
        	at sun.reflect.GeneratedMethodAccessor1745.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
        	at com.sun.proxy.$Proxy500.addArticle(Unknown Source)
        	at sun.reflect.GeneratedMethodAccessor1745.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
        	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
        	at com.sun.proxy.$Proxy223.addArticle(Unknown Source)
        	at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.addArticle(JournalArticleLocalServiceUtil.java:439)
        	at com.liferay.portlet.journal.lar.JournalArticleStagedModelDataHandler.doImportStagedModel(JournalArticleStagedModelDataHandler.java:643)
        	at com.liferay.portlet.journal.lar.JournalArticleStagedModelDataHandler.doImportStagedModel(JournalArticleStagedModelDataHandler.java:1)
        	at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:164)
        	... 44 more
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorge.diaz Jorge Diaz
                Reporter:
                jorge.diaz Jorge Diaz
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 24 weeks ago

                  Packages

                  Version Package