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

Console error when reindexing ES or SOLR

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Start portal with ES or SOLR
      2. Navigate to Control Panel > Configuration > Server Administration
      3. Reindex all search indexes.

      Expected Result:
      No console errors and success alert pops up.

      Actual Result:
      Console error (reproduced below) and success alert pops up.

      SOLR
      19:40:52,395 ERROR [liferay/background_task-1][SearchPermissionCheckerImpl:116] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.search.internal.SearchPermissionCheckerImpl.addPermissionFields(SearchPermissionCheckerImpl.java:76)
              at com.liferay.portal.search.internal.IndexWriterHelperImpl.updateDocuments(IndexWriterHelperImpl.java:492)
              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:606)
              at com.liferay.portal.kernel.util.ProxyFactory$ServiceTrackedInvocationHandler.invoke(ProxyFactory.java:112)
              at com.sun.proxy.$Proxy319.updateDocuments(Unknown Source)
              at com.liferay.portal.kernel.search.IndexWriterHelperUtil.updateDocuments(IndexWriterHelperUtil.java:199)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.indexInterval(IndexableActionableDynamicQuery.java:108)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.doPerformActions(IndexableActionableDynamicQuery.java:90)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.performActions(IndexableActionableDynamicQuery.java:60)
              at com.liferay.portlet.usersadmin.util.ContactIndexer.reindexContacts(ContactIndexer.java:207)
              at com.liferay.portlet.usersadmin.util.ContactIndexer.doReindex(ContactIndexer.java:176)
              at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:579)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:135)
              at com.liferay.portal.search.internal.SearchEngineInitializer.doReIndex(SearchEngineInitializer.java:106)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:57)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:53)
              at com.liferay.portal.search.internal.background.task.ReindexPortalBackgroundTaskExecutor.reindex(ReindexPortalBackgroundTaskExecutor.java:48)
              at com.liferay.portal.search.internal.background.task.ReindexBackgroundTaskExecutor.execute(ReindexBackgroundTaskExecutor.java:49)
              at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:58)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
              at com.liferay.portal.kernel.backgroundtask.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:56)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:121)
              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:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      19:40:52,521 ERROR [liferay/search_writer/SYSTEM_ENGINE-6][SolrUpdateDocumentCommandImpl:111] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.search.solr.internal.document.DefaultSolrDocumentFactory.getSolrInputDocument(DefaultSolrDocumentFactory.java:43)
              at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.doUpdateDocuments(SolrUpdateDocumentCommandImpl.java:86)
              at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.updateDocuments(SolrUpdateDocumentCommandImpl.java:69)
              at com.liferay.portal.search.solr.internal.SolrIndexWriter.updateDocuments(SolrIndexWriter.java:207)
              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:606)
              at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:86)
              at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:54)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      19:40:52,601 WARN  [liferay/search_writer/SYSTEM_ENGINE-6][ProxyMessageListener:84] com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
              at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.doUpdateDocuments(SolrUpdateDocumentCommandImpl.java:113)
              at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.updateDocuments(SolrUpdateDocumentCommandImpl.java:69)
              at com.liferay.portal.search.solr.internal.SolrIndexWriter.updateDocuments(SolrIndexWriter.java:207)
              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:606)
              at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:86)
              at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:54)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.search.solr.internal.document.DefaultSolrDocumentFactory.getSolrInputDocument(DefaultSolrDocumentFactory.java:43)
              at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.doUpdateDocuments(SolrUpdateDocumentCommandImpl.java:86)
              ... 13 more
      
      ElasticSearch
      22:58:53,986 ERROR [liferay/background_task-1][SearchPermissionCheckerImpl:116] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.search.internal.SearchPermissionCheckerImpl.addPermissionFields(SearchPermissionCheckerImpl.java:76)
              at com.liferay.portal.search.internal.IndexWriterHelperImpl.updateDocuments(IndexWriterHelperImpl.java:492)
              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:606)
              at com.liferay.portal.kernel.util.ProxyFactory$ServiceTrackedInvocationHandler.invoke(ProxyFactory.java:112)
              at com.sun.proxy.$Proxy314.updateDocuments(Unknown Source)
              at com.liferay.portal.kernel.search.IndexWriterHelperUtil.updateDocuments(IndexWriterHelperUtil.java:199)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.indexInterval(IndexableActionableDynamicQuery.java:108)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.doPerformActions(IndexableActionableDynamicQuery.java:90)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.performActions(IndexableActionableDynamicQuery.java:60)
              at com.liferay.portlet.usersadmin.util.ContactIndexer.reindexContacts(ContactIndexer.java:207)
              at com.liferay.portlet.usersadmin.util.ContactIndexer.doReindex(ContactIndexer.java:176)
              at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:579)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:135)
              at com.liferay.portal.search.internal.SearchEngineInitializer.doReIndex(SearchEngineInitializer.java:106)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:57)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:53)
              at com.liferay.portal.search.internal.background.task.ReindexPortalBackgroundTaskExecutor.reindex(ReindexPortalBackgroundTaskExecutor.java:48)
              at com.liferay.portal.search.internal.background.task.ReindexBackgroundTaskExecutor.execute(ReindexBackgroundTaskExecutor.java:49)
              at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:58)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
              at com.liferay.portal.kernel.backgroundtask.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:56)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:121)
              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:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      22:58:54,135 WARN  [liferay/search_writer/SYSTEM_ENGINE-4][ProxyMessageListener:84] com.liferay.portal.kernel.search.SearchException: Unable to update documents [null, {entryClassName=[com.liferay.portal.model.Contact], uid=[com.liferay.portal.model.Contact_PORTLET_20248], lastName=[Test], lastName_sortable=[test], classNameId=[20005], createDate_sortable=[1452120995004], assetTagIds=[], emailAddress=[test@liferay.com], entryClassPK=[20248], modified=[20160106225635], assetCategoryIds=[], userId=[20247], firstName_sortable=[test], userName=[Test Test], classPK=[20247], fullName=[Test Test], companyId=[20202], modified_sortable=[1452120995004], firstName=[Test], assetTagNames=[], createDate=[20160106225635]}]
      com.liferay.portal.kernel.search.SearchException: Unable to update documents [null, {entryClassName=[com.liferay.portal.model.Contact], uid=[com.liferay.portal.model.Contact_PORTLET_20248], lastName=[Test], lastName_sortable=[test], classNameId=[20005], createDate_sortable=[1452120995004], assetTagIds=[], emailAddress=[test@liferay.com], entryClassPK=[20248], modified=[20160106225635], assetCategoryIds=[], userId=[20247], firstName_sortable=[test], userName=[Test Test], classPK=[20247], fullName=[Test Test], companyId=[20202], modified_sortable=[1452120995004], firstName=[Test], assetTagNames=[], createDate=[20160106225635]}]
              at com.liferay.portal.search.elasticsearch.internal.ElasticsearchUpdateDocumentCommandImpl.updateDocuments(ElasticsearchUpdateDocumentCommandImpl.java:110)
              at com.liferay.portal.search.elasticsearch.internal.ElasticsearchIndexWriter.updateDocuments(ElasticsearchIndexWriter.java:240)
              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:606)
              at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:86)
              at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:54)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: com.liferay.portal.kernel.search.SearchException: Unable to update documents [null, {entryClassName=[com.liferay.portal.model.Contact], uid=[com.liferay.portal.model.Contact_PORTLET_20248], lastName=[Test], lastName_sortable=[test], classNameId=[20005], createDate_sortable=[1452120995004], assetTagIds=[], emailAddress=[test@liferay.com], entryClassPK=[20248], modified=[20160106225635], assetCategoryIds=[], userId=[20247], firstName_sortable=[test], userName=[Test Test], classPK=[20247], fullName=[Test Test], companyId=[20202], modified_sortable=[1452120995004], firstName=[Test], assetTagNames=[], createDate=[20160106225635]}]
              at com.liferay.portal.search.elasticsearch.internal.ElasticsearchUpdateDocumentCommandImpl.doUpdateDocuments(ElasticsearchUpdateDocumentCommandImpl.java:185)
              at com.liferay.portal.search.elasticsearch.internal.ElasticsearchUpdateDocumentCommandImpl.updateDocuments(ElasticsearchUpdateDocumentCommandImpl.java:106)
              ... 12 more
      Caused by: java.lang.NullPointerException
              at com.liferay.portal.search.elasticsearch.internal.ElasticsearchUpdateDocumentCommandImpl.doUpdateDocuments(ElasticsearchUpdateDocumentCommandImpl.java:157)
              ... 13 more
      

      Reproduced on:
      Tomcat 7.0.62 + MySQL 5.6.26 Portal master GIT ID: 5db5da21f3d0224f5c4a732867ca5d68a97d52c0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.lee Brian Lee
                Reporter:
                brian.lee Brian Lee
                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:
                  4 years, 37 weeks, 2 days ago

                  Packages

                  Version Package