Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Florencia Gadea
Current URL generates exception searching with Solr
22 de Maio de 2012 07:11
Resposta

Florencia Gadea

Ranking: Regular Member

Mensagens: 120

Data de entrada: 27 de Março de 2012

Mensagens recentes

Hi Everyone,

I'm using Liferay 6.1 integrated with Solr 1.4.1. Solr is running on the same machine, in a different tomcat instance than Liferay. When I use the search portlet, I get this exception:

 1
 213:49:07,080 ERROR [IncludeTag:426] Current URL /user/joebloggs/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=5&_3_struts_action=%2Fsearch%2Fsearch&_3_redirect=%2Fuser%2Fjoebloggs&_3_ke
 3ywords=crazy&_3_groupId=0 generates exception: null
 413:49:07,082 ERROR [IncludeTag:154] java.lang.NullPointerException
 5        at com.liferay.portal.search.solr.facet.SolrFacetFieldCollector.getTermCollector(SolrFacetFieldCollector.java:52)
 6        at org.apache.jsp.html.portlet.search.facets.asset_005fentries_jsp._jspService(asset_005fentries_jsp.java:777)
 7        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 8        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 9        at com.liferay.portal.kernel.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:45)
10        at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:323)
11        at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:418)
12        at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:92)
13        at org.apache.jsp.html.portlet.search.search_jsp._jspService(search_jsp.java:1141)
14        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
15        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
16        at com.liferay.portal.kernel.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:45)
17        at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:323)
18        at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:418)
19        at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:92)
20        at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3809)
21        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
22        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
23        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
24        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)

The search results are ok, but I get that exception every time I search for something. What do you thing this could be?

Searching in the Solr web console works fine.

TIA,

Florencia.
Florencia Gadea
RE: Current URL generates exception searching with Solr
24 de Maio de 2012 07:36
Resposta

Florencia Gadea

Ranking: Regular Member

Mensagens: 120

Data de entrada: 27 de Março de 2012

Mensagens recentes

Can anyone help me with this?

Should I raise a ticket with this issue?
Victor E
RE: Current URL generates exception searching with Solr
4 de Junho de 2012 23:10
Resposta

Victor E

Ranking: New Member

Mensagens: 5

Data de entrada: 2 de Março de 2012

Mensagens recentes

I also encounter the exact same error. I'm using Solr 3.4 with Liferay 6.1CE.
Anyone could advice on this please? Thanks
Rajarshi Chakrabarty
RE: Current URL generates exception searching with Solr
18 de Junho de 2012 23:06
Resposta

Rajarshi Chakrabarty

Ranking: New Member

Mensagens: 14

Data de entrada: 12 de Junho de 2012

Mensagens recentes

Hi florencia

You said that "The search results are ok," I am using Liferay 6.1 integrated with Solr 3.6.0 using solr web plugin 6.1.0.1. When i Query for the first time it give me same error as you got and my result page alignment also get disturbed. I dont know how to fix it. When I query for the second time, I get a whole bunch of errors. Are you facing the same problem as i am. Can you please tell me what steps you took???
Hitoshi Ozawa
RE: Current URL generates exception searching with Solr
23 de Junho de 2012 05:17
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 8000

Data de entrada: 23 de Março de 2010

Mensagens recentes

Should I raise a ticket with this issue?


I don't think Solr is officially supported in Liferay 6.1. If you want official support, use the built in Lucene instead.
Corné Aussems
RE: Current URL generates exception searching with Solr
3 de Julho de 2012 23:15
Resposta

Corné Aussems

Ranking: Liferay Legend

Mensagens: 1183

Data de entrada: 3 de Outubro de 2006

Mensagens recentes

Error also occurs in Liferay 6.1 EE, You might play with Asset and keep just one and then you will have no problems.
 1
 2    {
 3        "displayStyle": "asset_entries",
 4        "weight": 1.5,
 5        "static": false,
 6        "order": "OrderHitsDesc",
 7        "data": {
 8            "values": ["com.liferay.portlet.journal.model.JournalArticle"],
 9            "frequencyThreshold": 1
10        },
11        "label": "asset-type",
12        "className": "com.liferay.portal.kernel.search.facet.AssetEntriesFacet",
13        "fieldName": "entryClassName"
14    },


Error occurs in the asset_entries.jsp
1
2        for (String assetType : assetTypes) {
3            TermCollector termCollector = facetCollector.getTermCollector(assetType);


SolrFacetFieldCollector gets a nullpointer on _counts.get(term);
1
2    public TermCollector getTermCollector(String term) {
3        Count count = _counts.get(term);
4
5        return new SolrTermCollector(term, (int)count.getCount());
6    }


To conclude error stems form populating the facets by the SolrIndexSearcherImpl
1
2List<FacetField> facetFields = queryResponse.getFacetFields();


The facetFields are empty

Probably using SOLR 3.3 or 3.5 will solve things.
See http://issues.liferay.com/browse/LPS-25817

I wil test this later and get back to this topic


I will check this out later