<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Seems that there is problem with your formatter jsp. Check the function.jsp!
<div><br>
</div>
<div>Regards</div>
<div>Honey<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF283612" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> opencms-dev-bounces@opencms.org [opencms-dev-bounces@opencms.org] on behalf of Felix Noz [f.noz@gmx.de]<br>
<b>Sent:</b> Wednesday, March 22, 2017 5:10 PM<br>
<b>To:</b> opencms-dev@opencms.org<br>
<b>Subject:</b> [opencms-dev] NPE when using group in Solr search query<br>
</font><br>
</div>
<div></div>
<div>
<div style="font-family:Verdana; font-size:12.0px">
<div style="font-family:Verdana; font-size:12.0px">
<div>Hi guys,</div>
<div> </div>
<div>there's an XmlContent which contains a field named ride_recurring of type OpenCmsBoolean. My goal is that the result of the query shows first all items with ride_recurring==false and only after that all items with ride_recurring==false.</div>
<div>When omitting the grouping parameters the search works fine and all items are displayed non-grouped but as soon as adding &group=true&group.field=ride_recurring_s the exception below occurs.</div>
<div>Can anybody help me and tell me what's going wrong there?</div>
<div> </div>
<div>Regards</div>
<div>Felix</div>
<div> </div>
<div>Caused by: org.opencms.search.CmsSearchException: Ausführung des Queries "q=*:*&fl=*,score&qt=edismax&rows=5000&fq=expired:[NOW TO *]&fq=con_locales:de&fq=parent-folders:"/sites/default/"&fq=type:nb-ms-ride&fq=released:[* TO NOW]&fq=search_exclude:"false"&group.field=ride_recurring_s&group=true&start=0"
 schlug fehl.<br>
    at org.opencms.search.solr.CmsSolrIndex.search(CmsSolrIndex.java:1095)<br>
    at org.opencms.search.solr.CmsSolrIndex.search(CmsSolrIndex.java:507)<br>
    at org.opencms.file.collectors.CmsSolrCollector.getResults(CmsSolrCollector.java:193)<br>
    at org.opencms.file.collectors.CmsSolrCollector.getResults(CmsSolrCollector.java:169)<br>
    at org.opencms.jsp.CmsJspTagContentLoad.init(CmsJspTagContentLoad.java:575)<br>
    at org.opencms.jsp.CmsJspTagContentLoad.doStartTag(CmsJspTagContentLoad.java:235)<br>
    at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.XXX_002dlist_jsp._jspService(ride_002dlist_jsp.java:373)<br>
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)<br>
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)<br>
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)<br>
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)<br>
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)<br>
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)<br>
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)<br>
    at com.XXX.filter.BaseFilter.processFilter(BaseFilter.java:82)<br>
    at com.XXX.filter.WelcomeFilter.processFilter(WelcomeFilter.java:86)<br>
    at com.XXX.filter.BaseFilter.doFilter(BaseFilter.java:31)<br>
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)<br>
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)<br>
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)<br>
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:592)<br>
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:526)<br>
    at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:191)<br>
    at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:165)<br>
    at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:191)<br>
    at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:165)<br>
    at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:655)<br>
    at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:441)<br>
    at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)<br>
    at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:379)<br>
    at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:244)<br>
    at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:490)<br>
    at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_cms_005finclude_005f0(function_jsp.java:340)<br>
    at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_c_005fwhen_005f0(function_jsp.java:288)<br>
    at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_c_005fchoose_005f0(function_jsp.java:249)<br>
    at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspx_meth_cms_005fformatter_005f0(function_jsp.java:191)<br>
    at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_ade_config.formatters.function_jsp._jspService(function_jsp.java:142)<br>
    ... 117 more<br>
Caused by: java.lang.NullPointerException<br>
    at org.opencms.search.solr.CmsSolrIndex.search(CmsSolrIndex.java:866)<br>
    ... 154 more</div>
</div>
<div> </div>
<div class="signature"> </div>
</div>
</div>
</div>
</div>
</div>
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original
 message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law,
 this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
</body>
</html>