Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Sandip Patel
Search Result pagination issue in liferay EE 6.1
26 de marzo de 2012 2:26
Respuesta

Sandip Patel

Ranking: Regular Member

Mensajes: 171

Fecha de incorporación: 4 de enero de 2011

Mensajes recientes

Hi All,

I am using Liferay 6.1 EE, I found following issue in search portlet.

When search with any keyword with search results more than 20, while click on more link in pagination give me following error in console.

Caused by: java.lang.IllegalArgumentException: fromIndex(20) > toIndex(4)
at java.util.SubList.<init>(AbstractList.java:604)
at java.util.RandomAccessSubList.<init>(AbstractList.java:758)
at java.util.AbstractList.subList(AbstractList.java:468)
at com.liferay.portal.kernel.search.BaseIndexer.filterSearch(BaseIndexer.java:845)
at com.liferay.portal.kernel.search.FacetedSearcher.search(FacetedSearcher.java:97)
at org.apache.jsp.html.portlet.search.search_jsp._jspService(search_jsp.java:1086)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.liferay.portal.kernel.servlet.DirectRequestDispatcher.include(DirectRequestDispatche
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:323)
at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:418)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:92)
at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3812)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
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:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFil
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFil
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.j
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.j
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
at com.liferay.portal.struts.PortletRequestProcessor.doInclude(PortletRequestProcessor.java
at com.liferay.portal.struts.PortletRequestProcessor.doForward(PortletRequestProcessor.java
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcess
at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequest
at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:2
at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:239)
at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:152)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:211)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:651)


Please help me to solve this problem.
Jan Tošovský
RE: Search Result pagination issue in liferay EE 6.1
27 de marzo de 2012 12:21
Respuesta

Jan Tošovský

Ranking: Expert

Mensajes: 340

Fecha de incorporación: 22 de julio de 2010

Mensajes recientes

This is http://issues.liferay.com/browse/LPS-25143 marked as no longer reproducible ;-)
In my case it was connected with the 'scope' feature. My fix proposal can be found here: http://issues.liferay.com/browse/LPS-25360
HTH, Jan