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

NullPointerException during reindex for Mail portlet

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Mail
    • Labels:
      None
    • Fix Priority:
      4

      Description

      NullPointerException on startup of portal for the Mail portlet during reindex.

      14:58:47,781 ERROR [liferay/background_task-1][ReindexSingleIndexerBackgroundTaskExecutor:84] com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:584)
      	at com.liferay.portal.search.internal.background.task.ReindexSingleIndexerBackgroundTaskExecutor.reindex(ReindexSingleIndexerBackgroundTaskExecutor.java:81)
      	at com.liferay.portal.search.internal.background.task.ReindexBackgroundTaskExecutor.execute(ReindexBackgroundTaskExecutor.java:54)
      	at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:54)
      	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:124)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	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.mail.service.AccountLocalServiceUtil.getIndexableActionableDynamicQuery(AccountLocalServiceUtil.java:171)
      	at com.liferay.mail.internal.search.AccountIndexer.reindexMessages(AccountIndexer.java:142)
      	at com.liferay.mail.internal.search.AccountIndexer.doReindex(AccountIndexer.java:137)
      	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:578)
      	... 12 more
      14:58:47,781 ERROR [liferay/background_task-2][ReindexSingleIndexerBackgroundTaskExecutor:84] com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:584)
      	at com.liferay.portal.search.internal.background.task.ReindexSingleIndexerBackgroundTaskExecutor.reindex(ReindexSingleIndexerBackgroundTaskExecutor.java:81)
      	at com.liferay.portal.search.internal.background.task.ReindexBackgroundTaskExecutor.execute(ReindexBackgroundTaskExecutor.java:54)
      	at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:54)
      	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:124)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	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.mail.service.FolderLocalServiceUtil.getIndexableActionableDynamicQuery(FolderLocalServiceUtil.java:151)
      	at com.liferay.mail.internal.search.FolderIndexer.reindexMessages(FolderIndexer.java:144)
      	at com.liferay.mail.internal.search.FolderIndexer.doReindex(FolderIndexer.java:139)
      	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:578)
      	... 12 more
      14:58:47,781 ERROR [liferay/background_task-3][ReindexSingleIndexerBackgroundTaskExecutor:84] com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:584)
      	at com.liferay.portal.search.internal.background.task.ReindexSingleIndexerBackgroundTaskExecutor.reindex(ReindexSingleIndexerBackgroundTaskExecutor.java:81)
      	at com.liferay.portal.search.internal.background.task.ReindexBackgroundTaskExecutor.execute(ReindexBackgroundTaskExecutor.java:54)
      	at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:54)
      	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:124)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	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.mail.service.MessageLocalServiceUtil.getIndexableActionableDynamicQuery(MessageLocalServiceUtil.java:174)
      	at com.liferay.mail.internal.search.MessageIndexer.reindexMessages(MessageIndexer.java:113)
      	at com.liferay.mail.internal.search.MessageIndexer.doReindex(MessageIndexer.java:108)
      	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:578)
      	... 12 more
      

        Attachments

          Activity

            People

            Assignee:
            albert.lee Albert 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, 14 weeks, 5 days ago

                Packages

                Version Package
                Master