留言板
Lucene writer Problem
Hi,
I recently faced an issue with the lucene writer giving me null pointer exception in the logs.
Due to this the logs file got upto 10 gb in size which led to disk space shortage of the server.Which ultimetly led into the crash of the server.
I have attached the code of the errors from the logs for more information.
On analysing the error logs i came to a conclusion that this error occurs when i try to update any liferay core tables(like adding new user,adding new document etc.).
Please let me know how can i fix this problem to be fail safe.
All suggestions are welcome.
thanks
I recently faced an issue with the lucene writer giving me null pointer exception in the logs.
Due to this the logs file got upto 10 gb in size which led to disk space shortage of the server.Which ultimetly led into the crash of the server.
I have attached the code of the errors from the logs for more information.
On analysing the error logs i came to a conclusion that this error occurs when i try to update any liferay core tables(like adding new user,adding new document etc.).
10:05:32,975 WARN [liferay/search_writer/SYSTEM_ENGINE-2][ProxyMessageListener:81] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.search.lucene.IndexAccessorImpl.deleteDocuments(IndexAccessorImpl.java:138)
at com.liferay.portal.search.lucene.LuceneHelperImpl.deleteDocuments(LuceneHelperImpl.java:339)
at com.liferay.portal.search.lucene.LuceneHelperUtil.deleteDocuments(LuceneHelperUtil.java:301)
at com.liferay.portal.search.lucene.LuceneIndexWriter.deleteDocument(LuceneIndexWriter.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:744)
2015-05-08 10:46:00 INFO com.aspire.hha.util.LiferayUtil :118 - User group found with name {uuid=99a055bc-1825-458b-83c0-5e934eb75308, userGroupId=10693, companyId=10157, userId=10436, userName=HHA Admin, createDate=Sat Apr 26 14:00:11 MDT 2014, modifiedDate=Sat Apr 26 14:00:11 MDT 2014, parentUserGroupId=0, name=Customer User Group, description=Customer User Group, addedByLDAPImport=false}
2015-05-08 10:46:00 INFO com.aspire.hha.util.LiferayUtil :140 - Updating user in the liferay database.
2015-05-08 10:46:00 INFO com.aspire.hha.customer.service.impl.CustomerServiceImpl :392 - User updated
2015-05-08 10:46:00 INFO com.aspire.hha.customer.service.impl.CustomerServiceImpl :394 - Assigning organizations to user
2015-05-08 10:46:00 INFO com.aspire.hha.customer.service.impl.CustomerServiceImpl :397 - Organizations assigned
07:18:00,042 WARN [liferay/search_writer/SYSTEM_ENGINE-1][ProxyMessageListener:81] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.search.lucene.IndexAccessorImpl._write(IndexAccessorImpl.java:472)
at com.liferay.portal.search.lucene.IndexAccessorImpl.updateDocument(IndexAccessorImpl.java:241)
at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:737)
at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:406)
at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument(LuceneIndexWriter.java:118)
at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
Please let me know how can i fix this problem to be fail safe.
All suggestions are welcome.
thanks