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

Solr3: Reindexing spellcheck returns java.lang.NullPointerException errors in console

    Details

      Description

      Steps to reproduce:

      1. Download apache-solr-3.5.0.zip from 'http://archive.apache.org/dist/lucene/solr/3.5.0/'
      2. Unzip apache-solr-3.5.0.zip anywhere
      3. Navigate to apache-solr-3.5.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 Solr3 plugin
      6. After it's started, shut it down
      7. Navigate in folder to /tomcat-7.0.42/webapps/solr3-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/solr3-web/WEB-INF/conf
      13. Copy the schema.xml file
      14. Paste the file in apache-solr-3.5.0/example/solr/conf to replace the existing schema.xml file
      15. Start the Solr3 server in apache-solr-3.5.0/example (java -jar start.jar)
      16. Start liferay
      17. There will be a lot of outut on the Solr3 console (means it's working)
      18. Navigate to Control Panel > Server Administration and reindex spellcheck

      Expected result:
      Reindexing should complete without any errors in liferay terminal.

      Actual result:
      Liferay terminal returns errors:

      19:29:44,732 WARN  [liferay/search_writer/GENERIC_ENGINE-1][ProxyMessageListener:81] java.lang.NullPointerException
      java.lang.NullPointerException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
              at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:662)
      19:29:44,732 WARN  [liferay/search_writer/SYSTEM_ENGINE-17][ProxyMessageListener:81] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.kernel.search.BaseIndexWriter.indexSpellCheckerDictionaries(BaseIndexWriter.java:105)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
              at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:662)
      19:29:44,732 WARN  [liferay/search_writer/SYSTEM_ENGINE-11][ProxyMessageListener:81] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.kernel.search.BaseIndexWriter.indexQuerySuggestionDictionaries(BaseIndexWriter.java:79)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
              at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:662)

        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:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.1 CE GA2
                  6.2.X EE
                  7.0.0 M1