Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-40354

Extractor module initialisation failures break indexing

    Details

    • Symptom Severity:
      Minor
    • Support reference count:
      2

      Description

      AbstractExtractorModuleDescriptor#createModule is meant to catch any Errors that happen during plugin module initialisation, but module initialisation code can in some situations wrap these problems inside org.springframework.beans.factory.BeanCreationException which causes extractor initialisation errors to bubble up to AddDocumentIndexTask#perform causing the searchable to not get indexed even if it didn't need the extractor.

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.confluence.extra.officeconnector.index.word.WordTextExtractor': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.confluence.extra.officeconnector.index.word.WordTextExtractor
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:342)
      	at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at com.atlassian.plugin.osgi.spring.DefaultSpringContainerAccessor.createBean(DefaultSpringContainerAccessor.java:97)
      	at com.atlassian.confluence.plugin.ConfluencePluginUtils.instantiatePluginModule(ConfluencePluginUtils.java:162)
      	at com.atlassian.confluence.plugin.descriptor.AbstractExtractorModuleDescriptor.createModule(AbstractExtractorModuleDescriptor.java:111)
      	at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor.createModule(ExtractorModuleDescriptor.java:57)
      	at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor.createModule(ExtractorModuleDescriptor.java:12)
      	at com.atlassian.confluence.plugin.module.PluginModuleHolder.createModule(PluginModuleHolder.java:78)
      	at com.atlassian.confluence.plugin.module.PluginModuleHolder.getModule(PluginModuleHolder.java:104)
      	at com.atlassian.confluence.plugin.descriptor.AbstractExtractorModuleDescriptor.getModule(AbstractExtractorModuleDescriptor.java:70)
      	at com.atlassian.confluence.plugin.descriptor.AbstractExtractorModuleDescriptor.getModule(AbstractExtractorModuleDescriptor.java:26)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:352)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      	at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.extractWithLuceneExtractors(ConfluenceDocumentBuilder.java:175)
      	at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:121)
      	at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:55)
      	at com.atlassian.confluence.search.lucene.ReindexWorkBatch.indexCollection(ReindexWorkBatch.java:140)
      	at com.atlassian.confluence.search.lucene.ReindexWorkBatch.lambda$executeTransaction$227(ReindexWorkBatch.java:108)
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
      	at com.atlassian.confluence.search.lucene.ReindexWorkBatch.executeTransaction(ReindexWorkBatch.java:83)
      	at com.atlassian.confluence.search.lucene.ReindexWorkBatch.run(ReindexWorkBatch.java:71)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:164)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.confluence.extra.officeconnector.index.word.WordTextExtractor
      	at sun.reflect.GeneratedConstructorAccessor309.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
      	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
      	... 38 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                onevalainen Olli Nevalainen
                Participants:
                Last Touched By:
                Katherine Yabut
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Last commented:
                  1 year, 49 weeks, 2 days ago