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

Random "Unable to extract text" in DL integration tests

    Details

      Description

      Random error caught in integration testing on CI

      WARN  [com.liferay.document.library.test-executor-thread][FileImpl:466] Unable to extract text from G6CVe1fp
      org.apache.tika.exception.TikaException: TIKA-198: Illegal IOException from [email protected]
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:286)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143)
      	at org.apache.tika.Tika.parseToString(Tika.java:527)
      	at com.liferay.portal.util.FileImpl._parseToString(FileImpl.java:1134)
      	at com.liferay.portal.util.FileImpl.extractText(FileImpl.java:447)
      	at com.liferay.portal.kernel.util.FileUtil.extractText(FileUtil.java:163)
      	at com.liferay.portal.kernel.search.DocumentImpl.addFile(DocumentImpl.java:156)
      	at com.liferay.document.library.internal.search.spi.model.index.contributor.DLFileEntryModelDocumentContributor.contribute(DLFileEntryModelDocumentContributor.java:114)
      	at com.liferay.document.library.internal.search.spi.model.index.contributor.DLFileEntryModelDocumentContributor.contribute(DLFileEntryModelDocumentContributor.java:61)
      	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.lambda$getDocument$1(IndexerDocumentBuilderImpl.java:60)
      	at java.lang.Iterable.forEach(Iterable.java:75)
      	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.getDocument(IndexerDocumentBuilderImpl.java:58)
      	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.reindex(IndexerWriterImpl.java:235)
      	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.lambda$reindex$0(IndexerWriterImpl.java:166)
      	at java.util.Optional.ifPresent(Optional.java:159)
      	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.reindex(IndexerWriterImpl.java:166)
      	at com.liferay.portal.search.internal.indexer.DefaultIndexer.reindex(DefaultIndexer.java:250)
      	at com.liferay.portal.search.buffer.NoAutoCommitIndexer.reindex(NoAutoCommitIndexer.java:230)
      	at sun.reflect.GeneratedMethodAccessor344.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.search.buffer.IndexerRequest.execute(IndexerRequest.java:96)
      	at com.liferay.portal.search.internal.buffer.BaseIndexerRequestBufferExecutor.executeIndexerRequest(BaseIndexerRequestBufferExecutor.java:66)
      	at com.liferay.portal.search.internal.buffer.DefaultIndexerRequestBufferExecutor.execute(DefaultIndexerRequestBufferExecutor.java:77)
      	at com.liferay.portal.search.internal.buffer.BaseIndexerRequestBufferExecutor.execute(BaseIndexerRequestBufferExecutor.java:35)
      	at com.liferay.portal.search.internal.buffer.IndexerRequestBufferTransactionLifecycleListener.committed(IndexerRequestBufferTransactionLifecycleListener.java:46)
      	at com.liferay.portal.kernel.transaction.TransactionLifecycleNotifier.fireTransactionCommittedEvent(TransactionLifecycleNotifier.java:70)
      	at com.liferay.portal.kernel.transaction.TransactionLifecycleNotifier$1.doCommitted(TransactionLifecycleNotifier.java:39)
      	at com.liferay.portal.kernel.transaction.NewTransactionLifecycleListener.committed(NewTransactionLifecycleListener.java:29)
      	at com.liferay.portal.kernel.transaction.TransactionLifecycleManager.fireTransactionCommittedEvent(TransactionLifecycleManager.java:34)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.commit(DefaultTransactionExecutor.java:51)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy81.updateFileEntry(Unknown Source)
      	at com.liferay.document.library.kernel.service.DLAppServiceUtil.updateFileEntry(DLAppServiceUtil.java:2058)
      	at com.liferay.document.library.repository.capabilities.test.LiferayVersioningCapabilityTest._generateNewVersion(LiferayVersioningCapabilityTest.java:256)
      	at com.liferay.document.library.repository.capabilities.test.LiferayVersioningCapabilityTest.lambda$testLimitsTheNumberOfVersionsPerFileEntry$1(LiferayVersioningCapabilityTest.java:111)
      	at com.liferay.document.library.repository.capabilities.test.LiferayVersioningCapabilityTest._withMaximumNumberOfVersionsConfigured(LiferayVersioningCapabilityTest.java:278)
      	at com.liferay.document.library.repository.capabilities.test.LiferayVersioningCapabilityTest.testLimitsTheNumberOfVersionsPerFileEntry(LiferayVersioningCapabilityTest.java:101)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.poi.util.LittleEndian$BufferUnderrunException: buffer underrun
      	at org.apache.poi.util.LittleEndian.readInt(LittleEndian.java:690)
      	at org.apache.tika.parser.executable.ExecutableParser.parsePE(ExecutableParser.java:98)
      	at org.apache.tika.parser.executable.ExecutableParser.parse(ExecutableParser.java:74)
      	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
      	... 73 more
      

      Unsure what specific test caused this error, but this is the list of test classes that ran:

      com/liferay/document/library/app/service/test/DLAppServiceWhenMovingAFolderTest.class
      com/liferay/document/library/app/service/test/DLAppServiceWhenRevertingAFileEntryTest.class
      com/liferay/document/library/app/service/test/DLAppServiceWhenSearchingFileEntriesTest.class
      com/liferay/document/library/app/service/test/DLAppServiceWhenUpdatingAFileEntryTest.class
      com/liferay/document/library/app/service/test/DLAppServiceWhenUpdatingAFolderTest.class
      com/liferay/document/library/app/service/test/DLAppServiceWhenUpdatingAndCheckingInAFileEntryTest.class
      com/liferay/document/library/app/service/test/DLAppServiceWhenViewingFolderContentsTest.class
      com/liferay/document/library/asset/auto/tagger/tensorflow/test/DLFileEntryAutoTaggerTest.class
      com/liferay/document/library/asset/test/DLFileEntryDDMFormValuesReaderTest.class
      com/liferay/document/library/content/service/persistence/test/DLContentPersistenceTest.class
      com/liferay/document/library/content/service/test/DLContentLocalServiceTest.class
      com/liferay/document/library/convert/test/DocumentLibraryConvertProcessTest.class
      com/liferay/document/library/file/rank/service/persistence/test/DLFileRankPersistenceTest.class
      com/liferay/document/library/file/rank/trash/test/DLFileRankTrashHandlerTest.class
      com/liferay/document/library/info/display/contributor/test/FileEntryInfoDisplayContributorTest.class
      com/liferay/document/library/internal/asset/auto/tagger/text/extractor/test/FileEntryTextExtractorTest.class
      com/liferay/document/library/internal/exportimport/data/handler/test/DLFileEntryTypeStagedModelDataHandlerTest.class
      com/liferay/document/library/internal/exportimport/data/handler/test/FileEntryStagedModelDataHandlerTest.class
      com/liferay/document/library/internal/exportimport/data/handler/test/FileShortcutStagedModelDataHandlerTest.class
      com/liferay/document/library/internal/exportimport/data/handler/test/FolderStagedModelDataHandlerTest.class
      com/liferay/document/library/internal/exportimport/data/handler/test/RepositoryStagedModelDataHandlerTest.class
      com/liferay/document/library/internal/util/test/DLValidatorTest.class
      com/liferay/document/library/internal/versioning/test/ContentVersioningPolicyTest.class
      com/liferay/document/library/internal/versioning/test/MetadataVersioningPolicyTest.class
      com/liferay/document/library/internal/versioning/test/VersioningPolicyVersioningStrategyTest.class
      com/liferay/document/library/notifications/test/DocumentLibraryUserNotificationTest.class
      com/liferay/document/library/permission/test/DLFileEntryPermissionCheckerTest.class
      com/liferay/document/library/permission/test/DLFolderPermissionCheckerTest.class
      com/liferay/document/library/ratings/test/DLFileEntryRatingsTest.class
      com/liferay/document/library/ratings/test/DLFolderRatingsTest.class
      com/liferay/document/library/repository/capabilities/test/LiferayDynamicCapabilityTest.class
      com/liferay/document/library/repository/capabilities/test/LiferayVersioningCapabilityTest.class
      com/liferay/document/library/repository/portlet/file/repository/test/PortletFileRepositoryTest.class
      com/liferay/document/library/repository/portlet/repository/test/PortletRepositoryTest.class
      com/liferay/document/library/search/test/DLFileEntryFileNameSearchTest.class
      

      Full log attached.

      Possibly related to LPS-113032

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              austin.chiang Austin Chiang
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 18 weeks, 1 day ago

                  Packages

                  Version Package
                  7.3.3 CE GA4
                  7.3.10 DXP GA1
                  Master