CognitivZen / elasticray

Liferay elasticsearch integration
http://www.elasticray.com/
GNU Affero General Public License v3.0
12 stars 17 forks source link

search Portlet Search Displaying "NullPointerException" in Liferay 6.2 EE SP11 #27

Open Haritha1 opened 9 years ago

Haritha1 commented 9 years ago

Liferay Versions:: Liferay 6.2 EE SP11

Place Elasticray v1.4.0.0 version in liferay deploy folder and start liferay server

Next,Create users like "Test Screen" (Space Between Two words) as shown below screen

image

​Next ,Add Search portlet in Liferay welcome page and search users,here it is displaying Results but it shows "Null Pointer Exception " in Command Prompt.

image

​Log Details:

08:56:59,182 INFO [localhost-startStop-2][HotDeployImpl:138] Deploying elasticray-web from queue 08:56:59,185 INFO [localhost-startStop-2][PluginPackageUtil:1016] Reading plugin package for elasticray-web 09:00:36,296 ERROR [http-bio-8080-exec-9][IncludeTag:129] Current URL /web/guest/home?p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_3_struts_action=%2Fsearch%2Fsearch&_3_redirect=%2Fweb%2Fguest%2Fhome%3Fp_p_state%3Dmaximized%26p_p_lifecycle%3D0%26p_p_id%3D3%26_3_groupId%3D0%26p_p_mode%3Dview&_3_keywords=Portal+platform&_3_groupId=0 generates exception: javax.servlet.ServletException: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException java.lang.NullPointerException at com.liferay.portal.kernel.search.DefaultSearchResultPermissionFilter.filterHits(DefaultSearchResultPermissionFilter.java:53) at com.liferay.portal.kernel.search.BaseSearchResultPermissionFilter.search(BaseSearchResultPermissionFilter.java:42) at com.liferay.portal.kernel.search.BaseIndexer.search(BaseIndexer.java:527) at org.apache.jsp.html.portlet.search.facets.folders_jsp._jspService(folders_jsp.java:831) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) 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:728) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:299) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:57) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) 09:01:19,212 ERROR [http-bio-8080-exec-2][IncludeTag:129] Current URL /web/guest/home?p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_3_struts_action=%2Fsearch%2Fsearch&_3_redirect=%2Fweb%2Fguest%2Fhome%3Fp_p_id%3D3%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_3_groupId%3D0&_3_keywords=Test+Screen&_3_groupId=0 generates exception: com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException java.lang.NullPointerException at com.liferay.portal.kernel.search.DefaultSearchResultPermissionFilter.filterHits(DefaultSearchResultPermissionFilter.java:53) at com.liferay.portal.kernel.search.BaseSearchResultPermissionFilter.search(BaseSearchResultPermissionFilter.java:42) at com.liferay.portal.kernel.search.BaseIndexer.search(BaseIndexer.java:527) at org.apache.jsp.html.portlet.search.facets.folders_jsp._jspService(folders_jsp.java:831) 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.security.pacl.servlet.PACLRequestDispatcherWrapper$DispatchPrivilegedExceptionAction.run(PACLRequestDispatcherWrapper.java:111) at com.liferay.portal.security.pacl.servlet.PACLRequestDispatcherWrapper$DispatchPrivilegedExceptionAction.run(PACLRequestDispatcherWrapper.java:1) at com.liferay.portal.security.pacl.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:74) at com.liferay.portal.security.pacl.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:56) 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:1156) 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) ​