cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

no bean named > 'mystoreBrandCategoryCodeValueProvider' available

Former Member
0 Kudos
802

Caused by: java.util.concurrent.ExecutionException: de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerRuntimeException: de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Failed to index item with PK 8796431187969: No bean named 'mystoreBrandCategoryCodeValueProvider' available at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_171] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_171] at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.runWorkers(DefaultIndexerStrategy.java:141) ~[solrfacetsearchserver.jar:?]

I get this error when i try to go to localhost for mystore.

My steps:

  • i created b2b from b2c as described on helphybris

  • it is working well because i can visit powertools website

  • I copied all impexes from powertools to mystore which is under mystoreinitialdata/import

  • then i went to backoffice/wcms and saw my store as url

  • and also i could see my catalogs on catalogs tab; product, catalog and classification. Just like powertools.

What i want is, with powertools impexes copied to mystore, i want to see powertools items under mystore.

But it gives error which i posted in the beginning.

I only copied impexes.

For example

 mystore/solr.impex

has

 ;$solrIndexedType; color         ;string;;;Refine;Alpha; 4000;true;;mystoreVariantCategoryCodeValueProvider;categoryFacetDisplayNameProvider;defaultTopValuesProvider

which i copied from powertools. But powertools has

 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans.xsd
            http://www.springframework.org/schema/context
            http://www.springframework.org/schema/context/spring-context.xsd">;
            
     <context:annotation-config/> 
     
     <alias alias="b2bAcceleratorCoreSystemSetup" name="powertoolsStoreSystemSetup" />
     <bean id="powertoolsStoreSystemSetup" class="de.hybris.platform.powertoolsstore.setup.PowertoolsStoreSystemSetup" parent="abstractCoreSystemSetup">
         <property name="powertoolsCoreDataImportService" ref="powertoolsCoreDataImportService"/>
         <property name="powertoolsSampleDataImportService" ref="powertoolsSampleDataImportService"/>
     </bean>
     
     <bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService" 
         parent="sampleDataImportService">
     </bean>
     <bean id="powertoolsCoreDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsCoreDataImportService"
           parent="coreDataImportService">
     </bean>
 
     <!-- Solr field value providers TEMPORARY FOR NOW SO DO NOT NEED TO DEPEND ON yb2bacceleratorcore -->
     
         <bean id="powertoolsCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider">
         <property name="categorySource" ref="powertoolsCategorySource"/>
     </bean>
     <bean id="powertoolsBrandCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider">
         <property name="categorySource" ref="powertoolsBrandCategorySource"/>
     </bean>
     <bean id="powertoolsVariantCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider">
         <property name="categorySource" ref="powertoolsVariantCategorySource"/>
     </bean>
 
 
     <bean id="powertoolsCategoryNameValueProvider" parent="abstractCategoryNameValueProvider">
         <property name="categorySource" ref="powertoolsCategorySource"/>
     </bean>
     
     <bean id="powertoolsBrandCategoryNameValueProvider" parent="abstractCategoryNameValueProvider">
         <property name="categorySource" ref="powertoolsBrandCategorySource"/>
     </bean>
     
         <bean id="powertoolsCategorySource" parent="variantCategorySource">
         <property name="rootCategory" value="1"/> <!-- '1' is the root icecat category -->
     </bean>
     <bean id="powertoolsVariantCategorySource" parent="variantCategorySource"/>
 
     <bean id="powertoolsBrandCategorySource" parent="defaultCategorySource">
         <property name="rootCategory" value="brands"/> <!-- 'brands' is the root of the brands hierarchy -->
     </bean>
 
     <!-- Solr field value providers TEMPORARY FOR NOW SO DO NOT NEED TO DEPEND ON yb2bacceleratorcore -->
     
     
 </beans>

this in powertoolsspring-xml

there is no folder as mystorestore because the directory is powertoolsstore in

 <bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService" 
         parent="sampleDataImportService">


and for

  class="de.hybris.platform.powertoolsstore.setup.PowertoolsStoreSystemSetup" 

mystore only has

mystore/initialdata/setup/InitialDataSystemSetup.java

and for

     <bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService" 
     parent="sampleDataImportService">



mystore doesnot have.

What should i do? I want to see localhost with items. so i thought best way is to copy from powertools?

Accepted Solutions (0)

Answers (0)