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

NPE for SearchPermissionCheckerImpl.addPermissionFields when reindexing all search indexes

    Details

      Description

      The following exceptions occur when reindexing all search indexes in Server Administration:

      19:05:38,959 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 sun.reflect.GeneratedMethodAccessor876.invoke(Unknown Source)
              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.$Proxy222.addPermissionFields(Unknown Source)
              at com.liferay.portal.kernel.search.SearchEngineUtil.updateDocuments(SearchEngineUtil.java:964)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.indexInterval(IndexableActionableDynamicQuery.java:106)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.doPerformActions(IndexableActionableDynamicQuery.java:89)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
              at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.performActions(IndexableActionableDynamicQuery.java:59)
              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:591)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:134)
              at com.liferay.portal.search.internal.SearchEngineInitializer.doReIndex(SearchEngineInitializer.java:105)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:56)
              at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:52)
              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:05:39,316 WARN  [liferay/search_writer/SYSTEM_ENGINE-2][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_20386], lastName=[Test], lastName_sortable=[test], classNameId=[20005], createDate_sortable=[1450117141623], assetTagIds=[], emailAddress=[test@liferay.com], entryClassPK=[20386], modified=[20151214181901], assetCategoryIds=[], userId=[20385], firstName_sortable=[test], userName=[Test Test], classPK=[20385], fullName=[Test Test], companyId=[20338], modified_sortable=[1450117141623], firstName=[Test], assetTagNames=[], createDate=[20151214181901]}]
      com.liferay.portal.kernel.search.SearchException: Unable to update documents [null, {entryClassName=[com.liferay.portal.model.Contact], uid=[com.liferay.portal.model.Contact_PORTLET_20386], lastName=[Test], lastName_sortable=[test], classNameId=[20005], createDate_sortable=[1450117141623], assetTagIds=[], emailAddress=[test@liferay.com], entryClassPK=[20386], modified=[20151214181901], assetCategoryIds=[], userId=[20385], firstName_sortable=[test], userName=[Test Test], classPK=[20385], fullName=[Test Test], companyId=[20338], modified_sortable=[1450117141623], firstName=[Test], assetTagNames=[], createDate=[20151214181901]}]
              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_20386], lastName=[Test], lastName_sortable=[test], classNameId=[20005], createDate_sortable=[1450117141623], assetTagIds=[], emailAddress=[test@liferay.com], entryClassPK=[20386], modified=[20151214181901], assetCategoryIds=[], userId=[20385], firstName_sortable=[test], userName=[Test Test], classPK=[20385], fullName=[Test Test], companyId=[20338], modified_sortable=[1450117141623], firstName=[Test], assetTagNames=[], createDate=[20151214181901]}]
              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
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.lee Brian Lee
              Reporter:
              albert.lee Albert 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, 42 weeks ago

                  Packages

                  Version Package
                  7.0.0 Beta 3