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

Solr4: Console error returned when searching for blog entry

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Download apache-solr-4.0.0.zip from 'http://archive.apache.org/dist/lucene/solr/4.0.0/'
      2. Unzip apache-solr-4.0.0.zip anywhere
      3. Navigate to apache-solr-4.0.0/example in terminal and type 'java -jar start.jar'
      4. After the server has started up, shut it down
      5. Start Liferay and deploy the Solr4 plugin
      6. After it's started, shut it down
      7. Navigate in folder to /tomcat-7.0.42/webapps/solr4-web/WEB-INF/classes/META-INF
      8. Open solr-spring.xml
      9. Change 'http://localhost:8080/solr' to 'http://localhost:8983/solr'
      10. The changed line should look like this: <constructor-arg type="java.lang.String" value="http://localhost:8983/solr/" />
      11. Save and close solr-spring.xml
      12. Navigate in folder to /tomcat-7.0.42/webapps/solr4-web/WEB-INF/conf
      13. Open the schema.xml file and do a find for 'version'
      14. If it does not have it add <field indexed="true" multiValued="false" name="version" stored="true" type="string" /> after line 128 (should be after a <dynamicField indexed ../>)
      15. Save and close the file
      16. Copy the schema.xml file
      17. Paste the file in apache-solr-4.0.0/example/solr/collection1/conf to replace the existing schema.xml file
      18. Start the Solr4 server in apache-solr-4.0.0/example (java -jar start.jar)
      19. Start liferay
      20. There will be a lot of outut on the Solr4 console (means it's working)
      21. Navigate to Control Panel > Server Administration and reindex the search indexes
      22. Go back to Liferay and add the Search portlet and Blog portlet
      23. Add a blogs post with something unique
      24. Click Categorization and add tags
      25. After adding the blog post, search for it in the Search portlet
      26. Assert that the search returns your blog and the tags appear

      Expected result:
      Search should return results with the created blog entry with no errors in either terminal.

      Actual result:
      Search does return the blog entry, but there are console errors in the liferay terminal:

      22:26:21,493 ERROR [http-bio-8080-exec-10][IncludeTag:129] Current URL /web/guest/home?_3_formDate=1384295137609&p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_3_struts_action=%2Fsearch%2Fsearch&_3_cur=1&_3_format=&_3_keywords=continental&_3_search.x=-306&_3_search.y=-272 generates exception: com.liferay.portlet.asset.NoSuchEntryException: No AssetEntry exists with the key {classNameId=10007, classPK=10525}
      com.liferay.portlet.asset.NoSuchEntryException: No AssetEntry exists with the key {classNameId=10007, classPK=10525}
              at com.liferay.portlet.asset.service.persistence.AssetEntryPersistenceImpl.findByC_C(AssetEntryPersistenceImpl.java:2979)
              at com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl.getEntry(AssetEntryLocalServiceImpl.java:238)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil.getEntry(AssetEntryLocalServiceUtil.java:645)
              at org.apache.jsp.html.portlet.search.main_005fsearch_005fresult_005fform_jsp._jspService(main_005fsearch_005fresult_005fform_jsp.java:736)
              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.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.portal.kernel.dao.search.JSPSearchEntry.print(JSPSearchEntry.java:64)
              at org.apache.jsp.html.taglib.ui.search_005fiterator.page_jsp._jspService(page_jsp.java:1068)
              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.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)

      Note: There should be no errors in the Solr terminal.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jane.kim Jane Kim (Inactive)
              Reporter:
              jane.kim Jane Kim (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 3 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.10 EE GA1