SAP Knowledge Base Article - Preview

2375372 - SAP Retail Integration: extension conflict when adding sap retail extensions

Symptom

Exception occur after adding SAP retail extension to Hybris localextension.xml:

WARN [localhost-startStop-1] [CloseAwareApplicationContext] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'defaultInterceptorRegistry' defined in class path resource [interceptor-spring.xml]: Unsatisfied dependency expressed through bean property 'interceptorMappings': : Error creating bean with name 'sapCustomerExportInterceptor' defined in class path resource [sapcustomerb2c-spring.xml]: Cannot resolve reference to bean 'customerInterceptor' while setting bean property 'interceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCustomerInterceptor' defined in class path resource [sapcustomerb2c-spring.xml]: Cannot resolve reference to bean 'storeSessionFacade' while setting bean property 'storeSessionFacade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStoreSessionFacade' defined in class path resource [commercefacades-spring.xml]: Cannot resolve reference to bean 'commerceCartService' while setting bean property 'commerceCartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceCartService' defined in class path resource [commerceservices-spring.xml]: Cannot resolve reference to bean 'commerceAddToCartStrategy' while setting bean property 'commerceAddToCartStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOaaAddToCartStrategy' defined in class path resource [sapoaacommerceservices-spring.xml]: Cannot resolve reference to bean 'oaaCartAdjustmentStrategy' while setting bean property 'oaaCartAdjustmentStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOaaCartAdjustmentStrategy' defined in class path resource [sapoaacommerceservices-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'de.hybris.platform.sap.sapproductavailability.service.impl.DefaultSapProductAvailabilityService' to required type 'com.sap.retail.oaa.commerce.services.stock.SapOaaCommerceStockService' for property 'oaaStockService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [de.hybris.platform.sap.sapproductavailability.service.impl.DefaultSapProductAvailabilityService] to required type [com.sap.retail.oaa.commerce.services.stock.SapOaaCommerceStockService] for property 'oaaStockService': no matching editors or conversion strategy found; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sapCustomerExportInterceptor' defined in class path resource [sapcustomerb2c-spring.xml]: Cannot resolve reference to bean 'customerInterceptor' while setting bean property 'interceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCustomerInterceptor' defined in class path resource [sapcustomerb2c-spring.xml]: Cannot resolve reference to bean 'storeSessionFacade' while setting bean property 'storeSessionFacade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStoreSessionFacade' defined in class path resource [commercefacades-spring.xml]: Cannot resolve reference to bean 'commerceCartService' while setting bean property 'commerceCartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceCartService' defined in class path resource [commerceservices-spring.xml]: Cannot resolve reference to bean 'commerceAddToCartStrategy' while setting bean property 'commerceAddToCartStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOaaAddToCartStrategy' defined in class path resource [sapoaacommerceservices-spring.xml]: Cannot resolve reference to bean 'oaaCartAdjustmentStrategy' while setting bean property 'oaaCartAdjustmentStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOaaCartAdjustmentStrategy' defined in class path resource [sapoaacommerceservices-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'de.hybris.platform.sap.sapproductavailability.service.impl.DefaultSapProductAvailabilityService' to required type 'com.sap.retail.oaa.commerce.services.stock.SapOaaCommerceStockService' for property 'oaaStockService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [de.hybris.platform.sap.sapproductavailability.service.impl.DefaultSapProductAvailabilityService] to required type [com.sap.retail.oaa.commerce.services.stock.SapOaaCommerceStockService] for property 'oaaStockService': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1303) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) [spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:96) [coreserver.jar:?]
at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:264) [coreserver.jar:?]
at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:88) [coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:696) [coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:734) [coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:668) [coreserver.jar:?]
at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:639) [coreserver.jar:?]
at de.hybris.platform.core.Registry.activateTenant(Registry.java:700) [coreserver.jar:?]
at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:544) [coreserver.jar:?]
at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:607) [coreserver.jar:?]
at de.hybris.platform.core.Registry.startup(Registry.java:422) [coreserver.jar:?]
at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:235) [coreserver.jar:?]
at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:133) [coreserver.jar:?]
at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:123) [coreserver.jar:?]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) [spring-web-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:78) [coreserver.jar:?]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016) [catalina.jar:7.0.59]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524) [catalina.jar:7.0.59]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:7.0.59]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) [catalina.jar:7.0.59]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) [catalina.jar:7.0.59]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sapCustomerExportInterceptor' defined in class path resource [sapcustomerb2c-spring.xml]: Cannot resolve reference to bean 'customerInterceptor' while setting bean property 'interceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCustomerInterceptor' defined in class path resource [sapcustomerb2c-spring.xml]: Cannot resolve reference to bean 'storeSessionFacade' while setting bean property 'storeSessionFacade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStoreSessionFacade' defined in class path resource [commercefacades-spring.xml]: Cannot resolve reference to bean 'commerceCartService' while setting bean property 'commerceCartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceCartService' defined in class path resource [commerceservices-spring.xml]: Cannot resolve reference to bean 'commerceAddToCartStrategy' while setting bean property 'commerceAddToCartStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOaaAddToCartStrategy' defined in class path resource [sapoaacommerceservices-spring.xml]: Cannot resolve reference to bean 'oaaCartAdjustmentStrategy' while setting bean property 'oaaCartAdjustmentStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOaaCartAdjustmentStrategy' defined in class path resource [sapoaacommerceservices-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'de.hybris.platform.sap.sapproductavailability.service.impl.DefaultSapProductAvailabilityService' to required type 'com.sap.retail.oaa.commerce.services.stock.SapOaaCommerceStockService' for property 'oaaStockService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [de.hybris.platform.sap.sapproductavailability.service.impl.DefaultSapProductAvailabilityService] to required type [com.sap.retail.oaa.commerce.services.stock.SapOaaCommerceStockService] for property 'oaaStockService': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:996) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1288) ~[spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
... 35 more

...


Read more...

Environment

SAP Retail Integration, Hybris Commerce Suite, B2C 

Product

SAP Hybris Commerce 6.0 ; SAP Hybris Commerce 6.1 ; SAP Hybris Commerce, integration package for SAP for Retail 1.1 ; SAP Hybris Commerce, integration package for SAP for Retail 2.0 ; SAP hybris Commerce 5.7 ; SAP hybris Commerce, integration package for SAP for Retail 1.0

Keywords

Conflict extensions, OAA extensions , KBA , CEC-SCC-INT-RTI , Retail Integration , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.