-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.10 EE GA1
-
Fix Version/s: 6.2.1 CE GA2, 6.2.X EE, 7.0.0 M1
-
Labels:
-
Environment:Tomcat 7.0.42 + MySQL 5.5. Portal ee-6.2.10 GIT ID: 858f902a6e06bb738bb92b43466be5d67931ecf0.
Plugins ee-6.2.10 GIT ID: a22d0197b8fdb6936e3736764d22ace447143456.
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Git Pull Request:
Steps to reproduce:
- Download apache-solr-3.5.0.zip from 'http://archive.apache.org/dist/lucene/solr/3.5.0/'
- Unzip apache-solr-3.5.0.zip anywhere
- Navigate to apache-solr-3.5.0/example in terminal and type 'java -jar start.jar'
- After the server has started up, shut it down
- Start Liferay and deploy the Solr3 plugin
- After it's started, shut it down
- Navigate in folder to /tomcat-7.0.42/webapps/solr3-web/WEB-INF/classes/META-INF
- Open solr-spring.xml
- Change 'http://localhost:8080/solr' to 'http://localhost:8983/solr'
- The changed line should look like this: <constructor-arg type="java.lang.String" value="http://localhost:8983/solr/" />
- Save and close solr-spring.xml
- Navigate in folder to /tomcat-7.0.42/webapps/solr3-web/WEB-INF/conf
- Copy the schema.xml file
- Paste the file in apache-solr-3.5.0/example/solr/conf to replace the existing schema.xml file
- Start the Solr3 server in apache-solr-3.5.0/example (java -jar start.jar)
- Start liferay
- There will be a lot of outut on the Solr3 console (means it's working)
- 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)