Skip to Content
1
Former Member
Jan 30, 2018 at 07:52 AM

HYbris upgrade from 5.7 to 6.5, while starting the hybris service getting below error. any one have an idea how to resolve.

1018 Views

Error:

ERROR [localhost-startStop-1] [HybrisContextFactory] Error initializing global application context! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOrderService' defined in class path resource [order-spring.xml]: Cannot resolve reference to bean 'createOrderFromCartStrategy' while setting bean property 'createOrderFromCartStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultHofCreateOrderFromCartStrategy': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultHofDeliveryService' defined in class path resource [hofservices-spring.xml]: Cannot resolve reference to bean 'hofCreateConsignmentStrategy' while setting bean property 'hofCreateConsignmentStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DefaultHofCreateConsignmentStrategy' defined in class path resource [hofservices-spring.xml]: Cannot resolve reference to bean 'commerceStockService' while setting bean property 'commerceStockService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceStockService' defined in class path resource [commerceservices-spring.xml]: Cannot resolve reference to bean 'stockService' while setting bean property 'stockService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStockService' defined in class path resource [basecommerce-spring.xml]: Cannot resolve reference to bean 'stockLevelStatusStrategy' while setting bean property 'stockLevelStatusStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commerceStockLevelStatusStrategy' defined in class path resource [hofservices-spring.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'currentTenant' of bean class [de.hybris.platform.commerceservices.stock.strategies.impl.CommerceStockLevelStatusStrategy]: Bean property 'currentTenant' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1486) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:95) [coreserver.jar:?] at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:263) [coreserver.jar:?] at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:87) [coreserver.jar:?] at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:708) [coreserver.jar:?] at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:746) [coreserver.jar:?] at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:680) [coreserver.jar:?] at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:647) [coreserver.jar:?] at de.hybris.platform.core.Registry.activateTenant(Registry.java:708) [coreserver.jar:?] at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:555) [coreserver.jar:?] at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:615) [coreserver.jar:?] at de.hybris.platform.core.Registry.startup(Registry.java:433) [coreserver.jar:?] at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:317) [coreserver.jar:?] at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:203) [coreserver.jar:?] at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:191) [coreserver.jar:?] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) [spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE] at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:87) [coreserver.jar:?] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118) [catalina.jar:7.0.79] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634) [catalina.jar:7.0.79] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) [catalina.jar:7.0.79]