org.springframework.beans.factory.BeanCreationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {{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. {noformat} 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 {noformat}
    via by Olli Nevalainen,
  • {{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. {noformat} 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 {noformat}
    via by Olli Nevalainen [OOO until 6 Oct],
  • PowerMockito and Final Methods
    via by sohr...@googlemail.com,
  • Weblogic 10.3 web console does not work
    via Stack Overflow by webyildirim
    ,
    • 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

    Users with the same issue

    raytest
    367 times, last one,
    Andreas Häber
    5 times, last one,
    Unknown User
    70 times, last one,
    Axelo
    28 times, last one,
    jf-ast
    45 times, last one,
    27 more bugmates