[
https://issues.apache.org/jira/browse/SLING-7108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16166027#comment-16166027
]
Robert Munteanu commented on SLING-7108:
----------------------------------------
This is probably caused by Tika requiring JAXB classes and the Async index
update not being triggered.
{noformat}14.09.2017 12:52:18.076 *ERROR* [sling-default-1-Registered
Service.498] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception
during job execution of job
'org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@482cf5c8' with name
'Registered Service.498' and config SINGLE : javax/xml/bind/JAXBException
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:161)
at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:151)
at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:144)
at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:140)
at
org.apache.jackrabbit.oak.plugins.index.lucene.binary.BinaryTextExtractor.createDefaultParser(BinaryTextExtractor.java:237)
at
org.apache.jackrabbit.oak.plugins.index.lucene.binary.BinaryTextExtractor.<clinit>(BinaryTextExtractor.java:58)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorContext.getTextExtractor(LuceneIndexEditorContext.java:226)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorContext.newDocumentMaker(LuceneIndexEditorContext.java:211)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.makeDocument(LuceneIndexEditor.java:268)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.addOrUpdate(LuceneIndexEditor.java:244)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.leave(LuceneIndexEditor.java:140)
at
org.apache.jackrabbit.oak.spi.commit.CompositeEditor.leave(CompositeEditor.java:74)
at
org.apache.jackrabbit.oak.spi.commit.ProgressNotificationEditor.leave(ProgressNotificationEditor.java:76)
at
org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:63)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:130)
at
org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)
at
org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:461)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)
at
org.apache.jackrabbit.oak.plugins.index.IndexUpdate.enter(IndexUpdate.java:169)
at
org.apache.jackrabbit.oak.spi.commit.VisibleEditor.enter(VisibleEditor.java:57)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:49)
at
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.updateIndex(AsyncIndexUpdate.java:695)
at
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.runWhenPermitted(AsyncIndexUpdate.java:543)
at
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.run(AsyncIndexUpdate.java:402)
at
org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:245)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
at
org.apache.sling.launchpad.base.shared.LauncherClassLoader.loadClass(LauncherClassLoader.java:160)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at
org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:1009)
at
org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1631)
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1561)
at
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 29 common frames omitted
{noformat}
There's also a seemingly related issue logged:
{noformat}14.09.2017 12:52:23.033 *ERROR* [sling-default-2-Registered
Service.498] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception d
uring job execution of job
'org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@482cf5c8' with name
'Registered Service.498' and config
SINGLE : Could not initialize class
org.apache.jackrabbit.oak.plugins.index.lucene.binary.BinaryTextExtractor
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.jackrabbit.oak.plugins.index.lucene.binary.BinaryTextExtractor
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorContext.getTextExtractor(LuceneIndexEditorContext.java:226)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorContext.newDocumentMaker(LuceneIndexEditorContext.java:211)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.makeDocument(LuceneIndexEditor.java:268)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.addOrUpdate(LuceneIndexEditor.java:244)
at
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.leave(LuceneIndexEditor.java:140)
at
org.apache.jackrabbit.oak.spi.commit.CompositeEditor.leave(CompositeEditor.java:74)
at
org.apache.jackrabbit.oak.spi.commit.ProgressNotificationEditor.leave(ProgressNotificationEditor.java:76)
at
org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:63)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:130)
at
org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)
at
org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:461)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)
at
org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)
at
org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:461)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)
at
org.apache.jackrabbit.oak.plugins.index.IndexUpdate.enter(IndexUpdate.java:169)
at
org.apache.jackrabbit.oak.spi.commit.VisibleEditor.enter(VisibleEditor.java:57)
at
org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:49)
at
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.updateIndex(AsyncIndexUpdate.java:695)
at
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.runWhenPermitted(AsyncIndexUpdate.java:543)
at
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.run(AsyncIndexUpdate.java:402)
at
org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:245)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844){noformat}
> FullTextIndexingTest times out on Java 9
> ----------------------------------------
>
> Key: SLING-7108
> URL: https://issues.apache.org/jira/browse/SLING-7108
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Reporter: Robert Munteanu
> Fix For: Launchpad Testing 9
>
>
> {noformat}Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed:
> 45.657 sec <<< FAILURE! - in
> org.apache.sling.launchpad.webapp.integrationtest.indexing.FullTextIndexingTest
> testUploadedPdfIsIndexed[0 -
> lorem-ipsum.pdf](org.apache.sling.launchpad.webapp.integrationtest.indexing.FullTextIndexingTest)
> Time elapsed: 15.232 sec <<< FAILURE!
> java.lang.AssertionError: RetryLoop failed, condition is false after 15
> seconds: A document containing 'Excepteur' is found under
> /tmp/test-FullTextIndexingTest
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.sling.testing.tools.retry.RetryLoop.<init>(RetryLoop.java:65)
> at
> org.apache.sling.launchpad.webapp.integrationtest.indexing.FullTextIndexingTest.testUploadedPdfIsIndexed(FullTextIndexingTest.java:97)
> testUploadedPdfIsIndexed[1 -
> another.pdf](org.apache.sling.launchpad.webapp.integrationtest.indexing.FullTextIndexingTest)
> Time elapsed: 15.212 sec <<< FAILURE!
> java.lang.AssertionError: RetryLoop failed, condition is false after 15
> seconds: A document containing 'some text that we will search for' is found
> under /var/test-FullTextIndexingTest
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.sling.testing.tools.retry.RetryLoop.<init>(RetryLoop.java:65)
> at
> org.apache.sling.launchpad.webapp.integrationtest.indexing.FullTextIndexingTest.testUploadedPdfIsIndexed(FullTextIndexingTest.java:97)
> testUploadedPdfIsIndexed[2 -
> french.pdf](org.apache.sling.launchpad.webapp.integrationtest.indexing.FullTextIndexingTest)
> Time elapsed: 15.211 sec <<< FAILURE!
> java.lang.AssertionError: RetryLoop failed, condition is false after 15
> seconds: A document containing 'un autre PDF pour le test fulltext' is found
> under /libs/test-FullTextIndexingTest
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.sling.testing.tools.retry.RetryLoop.<init>(RetryLoop.java:65)
> at
> org.apache.sling.launchpad.webapp.integrationtest.indexing.FullTextIndexingTest.testUploadedPdfIsIndexed(FullTextIndexingTest.java:97){noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)