没有命名的bean>';mystoreBrandCategoryCodeValueProvider';可用(hybris)
原因:java.util.concurrent.ExecutionException: de.hybris.platform.solrfacetsearch.indexer.exceptions.indexer运行时异常: de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: 未能索引主键为8796431187969的项:没有名为的bean “mystoreBrandCategoryCodeValueProvider”可用 在java.util.concurrent.FutureTask.report(FutureTask.java:122)~[?:1.8.0_171] 在java.util.concurrent.FutureTask.get(FutureTask.java:192)~[?:1.8.0_171] 位于de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.runWorkers(DefaultIndexerStrategy.java:141) ~[solrfacetsearchserver.jar:?] 当我尝试转到mystore的localhost时出现此错误 我的步骤:没有命名的bean>';mystoreBrandCategoryCodeValueProvider';可用(hybris),hybris,Hybris,原因:java.util.concurrent.ExecutionException: de.hybris.platform.solrfacetsearch.indexer.exceptions.indexer运行时异常: de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: 未能索引主键为8796431187969的项:没有名为的bean “mystoreBrandCategoryCodeValuePro
- 我从b2c创建了b2b,如helphybris上所述
- 它运行良好,因为我可以访问powertools网站
- 我将所有弹夹从powertools复制到mystore,它位于
mystoreinitialdata/import
- 然后我去了
,看到我的商店是urlbackoffice/wcms
- 我还可以在
选项卡上看到我的目录;产品、目录和分类。就像电动工具一样catalogs
mystore/solr.impex
有
这是我从powertools复制的。但powertools已经做到了
<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>
以及
class="de.hybris.platform.powertoolsstore.setup.PowertoolsStoreSystemSetup"
mystore只有
mystore/initialdata/setup/InitialDataSystemSetup.java
以及
<bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService"
parent="sampleDataImportService">
mystore没有服务
我该怎么办?我想查看带有项目的localhost。所以我认为最好的方法是从powertools复制?您的solr indexer cron作业正在搜索bean“mystoreBrandCategoryCodeValueProvider”,所以这个bean应该在您的spring文件中定义,如果不使用,请将其删除。 可能的解决办法: 1。update solr.impex:如果不使用此bean,请将其删除,然后通过hac导入impex,或者更新系统,使您的impex在系统更新时被导入。 检查solrIndexedType如果某个旧文件正在使用此bean,请将其删除(通过hmc)
2.如果您正在使用此bean,请将其添加到spring文件中。您的solr indexer cron作业正在搜索bean“mystoreBrandCategoryCodeValueProvider”,因此应在spring文件中定义此bean,如果未使用,请将其删除。 可能的解决办法: 1。update solr.impex:如果不使用此bean,请将其删除,然后通过hac导入impex,或者更新系统,使您的impex在系统更新时被导入。 检查solrIndexedType如果某个旧文件正在使用此bean,请将其删除(通过hmc)
2.如果您正在使用此bean,请将其添加到spring文件中。希望您已正确复制了所有Impex 确定
- 在正确的文件夹路径中正确复制impex
/mystoreinitialdata/resources/mystoreinitialdata/import/sampledata/productCatalogs/mystoreProductCatalog/products media.impex
- 使用mystore更新powertool word参考
- 将siteResource指向正确的路径
$siteResource=jar:com.mystore.initialdata.constants.MystoreInitialDataConstants&/mystoreinitialdata/import/sampledata/productCatalogs/$productCatalog
- 更正InitialDataSystemSetup类
- 更正/在您的*core-spring.xml中添加您在impex中使用的bean
- 更新您的系统
- 在正确的文件夹路径中正确复制impex
/mystoreinitialdata/resources/mystoreinitialdata/import/sampledata/productCatalogs/mystoreProductCatalog/products media.impex
- 使用mystore更新powertool word参考
- 将siteResource指向正确的路径
$siteResource=jar:com.mystore.initialdata.constants.MystoreInitialDataConstants&/mystoreinitialdata/import/sampledata/productCatalogs/$productCatalog
- 更正InitialDataSystemSetup类
- 希望您已正确复制了所有Impex
确定
class="de.hybris.platform.powertoolsstore.setup.PowertoolsStoreSystemSetup"
<bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService"
parent="sampleDataImportService">
public static final String MYSTORE = "mystore";
@SystemSetup(type = Type.PROJECT, process = Process.ALL)
public void createProjectData(final SystemSetupContext context)
{
final List<ImportData> importData = new ArrayList<ImportData>();
final ImportData mystoreImportData = new ImportData();
mystoreImportData.setProductCatalogName(MYSTORE);
mystoreImportData.setContentCatalogNames(Arrays.asList(MYSTORE));
mystoreImportData.setStoreNames(Arrays.asList(MYSTORE));
importData.add(mystoreImportData);
/* uncomment below line to test mystoreinitialdata */
getCoreDataImportService().execute(this, context, importData);
getEventService().publishEvent(new CoreDataImportedEvent(context, importData));
getSampleDataImportService().execute(this, context, importData);
getEventService().publishEvent(new SampleDataImportedEvent(context, importData));
}
<bean id="yAcceleratorInitialDataSystemSetup"
class="com.store.initialdata.setup.InitialDataSystemSetup"
parent="abstractCoreSystemSetup">
<property name="coreDataImportService" ref="coreDataImportService"/>
<property name="sampleDataImportService" ref="sampleDataImportService"/>
</bean>
<!-- Solr ValueProvider -->
<bean id="mystoreCategorySource" parent="variantCategorySource">
<property name="rootCategory" value="1" /> <!-- '1' is the root icecat category -->
</bean>
<bean id="mystoreVariantCategorySource" parent="variantCategorySource" />
<bean id="mystoreBrandCategorySource" parent="defaultCategorySource">
<property name="rootCategory" value="brands" /> <!-- 'brands' is the root of the brands hierarchy -->
</bean>
<bean id="mystoreCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider">
<property name="categorySource" ref="mystoreCategorySource" />
</bean>
<bean id="mystoreBrandCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider">
<property name="categorySource" ref="mystoreBrandCategorySource" />
</bean>
<bean id="mystoreVariantCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider">
<property name="categorySource" ref="mystoreVariantCategorySource" />
</bean>
<bean id="mystoreCategoryNameValueProvider" parent="abstractCategoryNameValueProvider">
<property name="categorySource" ref="mystoreCategorySource" />
</bean>
<bean id="mystoreBrandCategoryNameValueProvider" parent="abstractCategoryNameValueProvider">
<property name="categorySource" ref="mystoreBrandCategorySource" />
</bean>