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

Exceptions throw when editing WC structure

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Go to Web Content
      2. Create a WC Structure
      3. Add a Text field and save the structure
      4. Create a Web Content based on that Structure and save it
      5. Edit the structure: add a new field, like Date

      Expected Results: No error throws on the console.
      Actual Results:
      Error throws on the console:

      2021-03-16 03:25:44.386 ERROR [liferay/ddm_structure_reindex-2][SerialDestination:64] Unable to process message {destinationName=liferay/ddm_structure_reindex, response=null, responseDestinationName=null, responseId=null, payload=null, values={defaultLocale=en_US, companyId=20100, groupId=0, structureId=41396, principalName=20128, permissionChecker=com.liferay.portal.kernel.util.TransientValue@14375e9f, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.kernel.search.SearchException: com.liferay.portal.kernel.exception.PortalException: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:41)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
              at com.liferay.portal.messaging.internal.SerialDestination$1.run(SerialDestination.java:59)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.portal.kernel.search.SearchException: com.liferay.portal.kernel.exception.PortalException: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
              at com.liferay.journal.internal.search.JournalArticleDDMStructureIndexer.reindexDDMStructures(JournalArticleDDMStructureIndexer.java:145)
              at com.liferay.dynamic.data.mapping.internal.messaging.DDMStructureReindexMessageListener.doReceive(DDMStructureReindexMessageListener.java:59)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34)
              ... 5 more
      Caused by: com.liferay.portal.kernel.exception.PortalException: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
              at com.liferay.journal.internal.search.JournalArticleDDMStructureIndexer.lambda$reindexDDMStructures$1(JournalArticleDDMStructureIndexer.java:138)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:394)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:306)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:268)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:326)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
              at com.liferay.journal.internal.search.JournalArticleDDMStructureIndexer.reindexDDMStructures(JournalArticleDDMStructureIndexer.java:142)
              ... 8 more
      Caused by: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
              at com.liferay.portal.kernel.search.BaseIndexer.getDocument(BaseIndexer.java:180)
              at com.liferay.journal.internal.search.JournalArticleIndexer._reindexEveryVersionOfResourcePrimKey(JournalArticleIndexer.java:1006)
              at com.liferay.journal.internal.search.JournalArticleIndexer.doReindex(JournalArticleIndexer.java:634)
              at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:483)
              at com.liferay.journal.internal.search.JournalArticleDDMStructureIndexer.lambda$reindexDDMStructures$1(JournalArticleDDMStructureIndexer.java:133)
              ... 14 more
      Caused by: java.lang.NullPointerException
              at com.liferay.dynamic.data.mapping.internal.util.DDMFormValuesToFieldsConverterImpl.setDDMFieldValue(DDMFormValuesToFieldsConverterImpl.java:202)
              at com.liferay.dynamic.data.mapping.internal.util.DDMFormValuesToFieldsConverterImpl.createDDMField(DDMFormValuesToFieldsConverterImpl.java:151)
              at com.liferay.dynamic.data.mapping.internal.util.DDMFormValuesToFieldsConverterImpl.addDDMField(DDMFormValuesToFieldsConverterImpl.java:78)
              at com.liferay.dynamic.data.mapping.internal.util.DDMFormValuesToFieldsConverterImpl.addDDMFields(DDMFormValuesToFieldsConverterImpl.java:100)
              at com.liferay.dynamic.data.mapping.internal.util.DDMFormValuesToFieldsConverterImpl.convert(DDMFormValuesToFieldsConverterImpl.java:60)
              at com.liferay.dynamic.data.mapping.internal.util.DDMIndexerImpl.toFields(DDMIndexerImpl.java:734)
              at com.liferay.dynamic.data.mapping.internal.util.DDMIndexerImpl.extractIndexableAttributes(DDMIndexerImpl.java:353)
              at com.liferay.journal.internal.search.JournalArticleIndexer.extractDDMContent(JournalArticleIndexer.java:678)
              at com.liferay.journal.internal.search.JournalArticleIndexer.doGetDocument(JournalArticleIndexer.java:443)
              at com.liferay.journal.internal.search.JournalArticleIndexer.doGetDocument(JournalArticleIndexer.java:117)
              at com.liferay.portal.kernel.search.BaseIndexer.getDocument(BaseIndexer.java:152)
              ... 18 more
      

        Attachments

          Activity

            People

            Assignee:
            lu.liu Lu Liu
            Reporter:
            yvonne.han Yvonne Han
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 weeks, 5 days ago

                Packages

                Version Package
                7.4.0 CE GA1
                Master