Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-23363

Search is broken with full database's pre-packaged data

    Details

      Description

      When using the Search portlet on Liferay with a full database, the results fail to return anything that is in the pre-packaged data (users, etc). For example, the query 'test' should return all 190 the pre-installed users, but none of them are displayed and an exception is thrown.

      Steps to reproduce:

      1. Start Liferay with a full database.
      2. Sign in.
      3. Add a Search portlet to the front page.
      4. Type 'test' into the input box and submit.

      While the portlet reports that there are 190 results in Users, none of them display and the following error shows up on the console:

      22:08:19,897 ERROR [IncludeTag:426] Current URL /web/guest/home?
      
      p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&p_p_col_id=column-1&_3_struts_action=%2Fsearch
      
      %2Fsearch&_3_keywords=test&_3_groupId=0 generates exception: An exception occurred processing JSP page 
      
      /html/taglib/ui/search_iterator/page.jsp at line 307
      
      304:                            >
      305:
      306:                                    <%
      307:                                    entry.print(pageContext);
      308:                                    %>
      309:
      310:                            </td>
      
      
      Stacktrace:
      22:08:19,901 ERROR [IncludeTag:154] com.liferay.portlet.asset.NoSuchEntryException: No AssetEntry exists with the key 
      
      {classNameId=13, classPK=938}
              at com.liferay.portlet.asset.service.persistence.AssetEntryPersistenceImpl.findByC_C(AssetEntryPersistenceImpl.java:2322)
              at com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl.getEntry(AssetEntryLocalServiceImpl.java:224)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
              at com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil.getEntry(AssetEntryLocalServiceUtil.java:356)
              at org.apache.jsp.html.portlet.search.main_005fsearch_005fresult_005fform_jsp._jspService
      
      (main_005fsearch_005fresult_005fform_jsp.java:672)
              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:433)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      

      The problem exists even after performing a re-index. Search works as expected when Liferay starts on a minimal database.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              paul.piao Paul Piao (Inactive)
              Reporter:
              catherine.lui Catherine Lui (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 21 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2