Skip to Content
0
Aug 30, 2018 at 05:18 PM

IndexerException: Failed to index item with PK 8796132245505: No bean named 'enumValueResolver' available

1501 Views

Hello, I am upgrading from 6.5 to 6.6 and I cannot browse the Types in the backoffice because it says that it needs indexing, but when I go in the Backoffice to "Search and Navigation->Facet Search Configurations->Solr Config for Backoffice" and try to make a full indexing I get an exception

I don't see how this bean could be missing, because it's in platformbackoffice which shows up at the start of the log when I start hybris...

Also I tried to debug the spring code (DefaultListableBeanFactory.getBeanDefinition) and found out that the context at the moment when it looks for this bean has only 64 beans available! And they seams to be only from code and solrserver. At other times in the same location when search for beans it has 4000+ beans, and sometimes 200+, so it looks like that we have a lot of different contexts???

Anyway, please I'll be thankful for any hints here, I already tried updating multiple times and it didn't help. I can't do initialization because this project is already in production.

Any ideas??? thanks

 ERROR [solr indexer thread] [DefaultIndexerWorker] [Indexer worker 2 (FULL index operation on Solr Config for Backoffice/Product_backoffice_product)] failed to process index items due to Failed to index item with PK 8796132245505: No bean named 'enumValueResolver' available
  de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Failed to index item with PK 8796132245505: No bean named 'enumValueResolver' available
         at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:263) ~[solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:124) ~[solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.executeIndexerOperation(DefaultIndexerBatchStrategy.java:253) ~[solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.execute(DefaultIndexerBatchStrategy.java:218) ~[solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.doRun(DefaultIndexerWorker.java:202) [solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.run(DefaultIndexerWorker.java:158) [solrfacetsearchserver.jar:?]
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_172]
         at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_172]
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_172]
         at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_172]
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_172]
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
 Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'enumValueResolver' available
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080) ~[spring-context-4.3.14.RELEASE.jar:4.3.14.RELEASE]
         at de.hybris.platform.solrfacetsearch.provider.impl.DefaultValueProviderSelectionStrategy.getValueProvider(DefaultValueProviderSelectionStrategy.java:61) ~[solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultSolrDocumentFactory.addIndexedPropertyFields(DefaultSolrDocumentFactory.java:289) ~[solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultSolrDocumentFactory.createInputDocument(DefaultSolrDocumentFactory.java:191) ~[solrfacetsearchserver.jar:?]
         at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:118) ~[solrfacetsearchserver.jar:?]
         ... 11 more