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

NullPointerException was thrown by search portlet when using solr.

Details

    Description

      Steps to reproduce:

      1. Set up solr for liferay.
      2. Sign in as [email protected]
      3. Make sure the user test has been indexed in Solr. If not rebuild indexes.
      4. Add a Search portlet to a page.
      5. Search by the keyword "test".

      Expected result:
      Shown results without errors.

      Actual result:
      The NullPointerException was thrown. The search portlet maximized and no results were shown.

      03:34:17,915 ERROR [http-bio-9080-exec-9][IncludeTag:129] Current URL /web/guest/home?p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=2&_3_struts_action=%2Fsearch%2Fsearch&_3_redirect=%2Fhome&_3_keywords=test&_3_groupId=0 generates exception: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.portal.kernel.search.HitsImpl.setScores(HitsImpl.java:164)
      	at com.liferay.portal.kernel.search.BaseIndexer.filterSearch(BaseIndexer.java:1397)
      	at com.liferay.portal.kernel.search.FacetedSearcher.search(FacetedSearcher.java:99)
      	at org.apache.jsp.html.portlet.search.search_jsp._jspService(search_jsp.java:1091)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
      	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
      	at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3850)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      

      This happened when search using the keyword which matched a user.

      Attachments

        Issue Links

          Activity

            People

              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 3 weeks, 5 days ago

                Packages

                  Version Package
                  6.2.1 CE GA2
                  6.2.X EE
                  7.0.0 M1