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

Reindexing on an upgraded database sometimes return a null backgroundTaskStatus object

    Details

    • Story Points:
      1
    • Fix Priority:
      2

      Description

      Running reindex after starting up an upgraded database sometimes return a null backgroundTaskStatus object throwing the following exception stacktrace:

       [exec] 23:11:55,939 WARN  [http-nio-8080-exec-3][ThemeLocalServiceImpl:237] No theme found for specified theme id classic. Returning the default theme.
           [exec]     LIFERAY_ERROR: Current URL /group/control_panel/manage?p_p_id=com_liferay_server_admin_web_portlet_ServerAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_server_admin_web_portlet_ServerAdminPortlet_mvcRenderCommandName=%2Fserver_admin%2Fview&_com_liferay_server_admin_web_portlet_ServerAdminPortlet_cur=0&_com_liferay_server_admin_web_portlet_ServerAdminPortlet_tabs1=resources generates exception: java.lang.NullPointerException
           [exec] 23:12:24,631 ERROR [http-nio-8080-exec-1][IncludeTag:128] Current URL /group/control_panel/manage?p_p_id=com_liferay_server_admin_web_portlet_ServerAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_server_admin_web_portlet_ServerAdminPortlet_mvcRenderCommandName=%2Fserver_admin%2Fview&_com_liferay_server_admin_web_portlet_ServerAdminPortlet_cur=0&_com_liferay_server_admin_web_portlet_ServerAdminPortlet_tabs1=resources generates exception: java.lang.NullPointerException
           [exec] java.lang.NullPointerException
           [exec] 	at com.liferay.portal.kernel.backgroundtask.display.BaseBackgroundTaskDisplay.getBackgroundTaskStatusAttributeLong(BaseBackgroundTaskDisplay.java:133)
           [exec] 	at com.liferay.portal.search.internal.background.task.display.ReindexBackgroundTaskDisplay.getPercentage(ReindexBackgroundTaskDisplay.java:37)
           [exec] 	at com.liferay.portal.kernel.backgroundtask.display.BaseBackgroundTaskDisplay.hasPercentage(BaseBackgroundTaskDisplay.java:77)
           [exec] 	at org.apache.jsp.resources_jsp._jspService(resources_jsp.java:671)
           [exec] 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
           [exec] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
           [exec] 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
           [exec] 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
           [exec] 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
           [exec] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
           [exec] 	at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:403)
           [exec] 	at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:414)
           [exec] 	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
           [exec] 	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
           [exec] 	at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:117)
           [exec] 	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
           [exec] 	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
           [exec] 	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
           [exec] 	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
           [exec] 	at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:380)
           [exec] 23:12:24,697 INFO  [elasticsearch[Recorder][clusterService#updateTask][T#1]][metadata:391] [Recorder] [liferay-10253] creating index, cause [api], templates [], shards [1]/[0], mappings [KeywordQueryDocumentType, LiferayDocumentType, SpellCheckDocumentType]
           [exec] 23:12:24,746 INFO  [elasticsearch[Recorder][clusterService#updateTask][T#1]][allocation:238] [Recorder] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[liferay-10253][0]] ...]).
      

        Attachments

          Activity

            People

            • Assignee:
              linda.sui Linda Sui
              Reporter:
              albert.lee Albert Lee
              Participants of an Issue:
              Recent user:
              Linda Sui
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 43 weeks ago

                Packages

                Version Package
                7.0.X
                Master