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

Search portlet custom date range search fails with java.lang.NullPointerException when using SOLR

    Details

      Description

      Steps of reproduction:

      1. Setup SOLR 4.8.1 (latest), SOLR 4 EE plugin and Liferay 6.2 with customer's fix-packs.
      2. Create a web content article.
      3. Place a Search portlet on a page.
      4. Search for a word in the article. The article is found.
      5. Click "Custom range" and provide two dates, click Search.

      Result: Search fails with:

      15:34:17,851 ERROR [http-bio-8080-exec-1][IncludeTag:129] Current URL /web/guest/home?_3_formDate=1403537625615&p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view
      &_3_struts_action=%2Fsearch%2Fsearch&_3_cur=1&_3_format=&_3_keywords=brazil&_3_groupId=0&_3_entryClassName=&_3_folderId=&_3_userId=&_3_modified=%5B20140601000000+TO+20140
      630235959%5D&_3_modifiedselection=6&_3_modifiedfrom=2014-06-01&_3_modifiedto=2014-06-30&_3_documentsSearchContainerPrimaryKeys=15_PORTLET_10672 generates exception: null
      java.lang.NullPointerException
      at com.liferay.portal.search.solr.facet.SolrFacetQueryCollector.getTermCollector(SolrFacetQueryCollector.java:53)
      at org.apache.jsp.html.portlet.search.facets.modified_jsp._jspService(modified_jsp.java:990)
      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.portlet.search.search_jsp._jspService(search_jsp.java:1151)
      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:3807)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 15 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M1