SAP Knowledge Base Article - Preview

2324288 - NullPointerException occurred when adding a new language in solr

Symptom

After adding a new language in solr with ISO code en_SG, the indexing is successful. But when searching in the storefront, the below NullPointerException occurred.

INFO   | jvm 1    | main    | 2016/05/26 16:20:09.816 | ERROR [hybrisHTTP6] [SolrSearchRequestResponsePopulator] Exception while executing SOLR search
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.816 | de.hybris.platform.solrfacetsearch.search.FacetSearchException: Error from server at http://localhost:8983/solr/master_electronics_Product: java.lang.NullPointerException
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.816 |  at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:146)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.816 |  at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:277)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.817 |  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.817 |  at org.apache.solr.core.SolrCore.execute(SolrCore.java:2068)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.817 |  at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:669)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.817 |  at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:462)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.817 |  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:210)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.817 |  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)
......
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.903 | Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/master_electronics_Product: java.lang.NullPointerException
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.903 |  at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:146)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.904 |  at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:277)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.904 |  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.904 |  at org.apache.solr.core.SolrCore.execute(SolrCore.java:2068)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.905 |  at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:669)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.906 |  at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:462)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.906 |  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:210)
INFO   | jvm 1    | main    | 2016/05/26 16:20:09.906 |  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)
......


Read more...

Environment

  • hybris Commerce Suite 5.7
  • hybris Commerce Suite 6.5

Product

SAP Hybris Commerce 6.5 ; SAP hybris Commerce 5.7

Keywords

en_sg, en_SG, language, solr, NullPointerException , KBA , CEC-SCC-COM-SRC-SER , Search and Navigation , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.