Foros de discusión
NoSuchMethodException while re-indexing all indexes LR7.0 GA3
Kim Zeevaarders, modificado hace 7 años.
NoSuchMethodException while re-indexing all indexes LR7.0 GA3
Junior Member Mensajes: 82 Fecha de incorporación: 7/09/12 Mensajes recientes
Hello,
When i re-index all indexes from the control panel: I get spammed with the following exception:
It seems Liferay is using the wrong version of the apache poi library, but i am unsure as how this can be since I use a vanilla LR7 GA3 instance. Does anybody know how to fix this problem, eg., with which version I should replace the current poi librarties in Liferay?
Many Thx!
Regards,
Kim Zeevaarders
The Netherlands
When i re-index all indexes from the control panel: I get spammed with the following exception:
11:57:47,875 ERROR [liferay/background_task-1][FileImpl:451] java.lang.NoSuchMethodError: org.apache.poi.hwpf.model.ListLevel.getRestart()S
java.lang.NoSuchMethodError: org.apache.poi.hwpf.model.ListLevel.getRestart()S
at org.apache.tika.parser.microsoft.ListManager.buildTuple(ListManager.java:108)
at org.apache.tika.parser.microsoft.ListManager.getFormattedNumber(ListManager.java:86)
at org.apache.tika.parser.microsoft.WordExtractor.handleParagraph(WordExtractor.java:277)
at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:168)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:146)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:117)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
at org.apache.tika.Tika.parseToString(Tika.java:465)
at org.apache.tika.Tika.parseToString(Tika.java:540)
at com.liferay.portal.util.FileImpl.extractText(FileImpl.java:429)
at com.liferay.portal.kernel.util.FileUtil.extractText(FileUtil.java:217)
at com.liferay.portal.kernel.search.DocumentImpl.addFile(DocumentImpl.java:199)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doGetDocument(DLFileEntryIndexer.java:387)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doGetDocument(DLFileEntryIndexer.java:99)
at com.liferay.portal.kernel.search.BaseIndexer.getDocument(BaseIndexer.java:174)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer$2.performAction(DLFileEntryIndexer.java:603)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer$2.performAction(DLFileEntryIndexer.java:598)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:396)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:305)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:269)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:325)
at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.doPerformActions(IndexableActionableDynamicQuery.java:102)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:85)
at com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery.performActions(IndexableActionableDynamicQuery.java:64)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.reindexFileEntries(DLFileEntryIndexer.java:620)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doReindex(DLFileEntryIndexer.java:538)
at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:578)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer$3.performAction(DLFileEntryIndexer.java:643)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer$3.performAction(DLFileEntryIndexer.java:629)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:396)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:305)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:269)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:325)
at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:85)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.reindexFolders(DLFileEntryIndexer.java:648)
at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doReindex(DLFileEntryIndexer.java:530)
at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:578)
at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:135)
at com.liferay.portal.search.internal.SearchEngineInitializer.doReIndex(SearchEngineInitializer.java:106)
at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:57)
at com.liferay.portal.search.internal.SearchEngineInitializer.reindex(SearchEngineInitializer.java:53)
at com.liferay.portal.search.internal.background.task.ReindexPortalBackgroundTaskExecutor.reindex(ReindexPortalBackgroundTaskExecutor.java:48)
at com.liferay.portal.search.internal.background.task.ReindexBackgroundTaskExecutor.execute(ReindexBackgroundTaskExecutor.java:54)
at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:54)
at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
at com.liferay.portal.kernel.backgroundtask.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:56)
at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:124)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
at java.lang.Thread.run(Thread.java:745)
It seems Liferay is using the wrong version of the apache poi library, but i am unsure as how this can be since I use a vanilla LR7 GA3 instance. Does anybody know how to fix this problem, eg., with which version I should replace the current poi librarties in Liferay?
Many Thx!
Regards,
Kim Zeevaarders
The Netherlands
Kim Zeevaarders, modificado hace 7 años.
RE: NoSuchMethodException while re-indexing all indexes LR7.0 GA3
Junior Member Mensajes: 82 Fecha de incorporación: 7/09/12 Mensajes recientes
Solved the problemby upgrading the 4 apache poi libraries in web-inf/lib to version 3.13-beta-1 (instead of the original 3.11 version that liferay ships with)
I've found this version by analyzing the dependencies of liferay 1.10 tika parser dependency on mvnrepository.com: tika-parsers-1.10
Hope it helps other people experiencing problem while re-indexing all indexes over the control panel
Regards,
Kim
I've found this version by analyzing the dependencies of liferay 1.10 tika parser dependency on mvnrepository.com: tika-parsers-1.10
Hope it helps other people experiencing problem while re-indexing all indexes over the control panel
Regards,
Kim
Juan Gonzalez, modificado hace 7 años.
RE: NoSuchMethodException while re-indexing all indexes LR7.0 GA3
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Hi Kim, would you be so kind to open a ticket (https://issues.liferay.com/projects/LPS) with steps to reproduce and paste here the ticket number?
That way we could fix this for next Liferay versions.
Thanks!
That way we could fix this for next Liferay versions.
Thanks!
Jorge Díaz, modificado hace 7 años.
RE: NoSuchMethodException while re-indexing all indexes LR7.0 GA3
Liferay Master Mensajes: 753 Fecha de incorporación: 9/01/14 Mensajes recientes
For the record:
- In Liferay 7.0 GA1 that exception stopped the reindex process
- From Liferay 7.0 GA2 and newer (and DXP) the exception is written to log but we don't stop the reindex process, see: LPS-64958
- In Liferay 7.0 GA1 that exception stopped the reindex process
- From Liferay 7.0 GA2 and newer (and DXP) the exception is written to log but we don't stop the reindex process, see: LPS-64958