Skip to Content
1
Former Member
Aug 23, 2017 at 01:58 PM

Exception encountered during context initialization - cancelling refresh attempt

4569 Views

Hi,

Upgrading to 5.0.X to 5.7.0.2, while starting the server getting below exception. Please suggest if any solution.

Thanks & Regards, Subba Rao A.

INFO | jvm 1 | main | 2017/08/23 17:00:37.206 | WARN [localhost-startStop-1] [CloseAwareApplicationContext] Exception encountered during context initialization - cancelling refresh attempt INFO | jvm 1 | main | 2017/08/23 17:00:37.218 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listMergeBeanPostProcessor' defined in class path resource [commerceservices-spring.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commercePlaceOrderMethodHooksListMergeDirective' defined in class path resource [b2bapprovalprocess-spring.xml]: Cannot resolve reference to bean 'b2bApprovalBusinessProcessCreationPlaceOrderMethodHook' while setting bean property 'add'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'b2bApprovalBusinessProcessCreationPlaceOrderMethodHook' defined in class path resource [b2bapprovalprocess-spring.xml]: Cannot resolve reference to bean 'defaultB2BCreateOrderFromCartStrategy' while setting bean property 'businessProcessCreationStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultB2BCreateOrderFromCartStrategy' defined in class path resource [b2bapprovalprocess-spring.xml]: Cannot resolve reference to bean 'cloneAbstractOrderStrategy' while setting bean property 'cloneAbstractOrderStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCloneAbstractOrderStrategy' defined in class path resource [order-spring.xml]: Cannot resolve reference to bean 'typeService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultTypeService' defined in class path resource [servicelayer-spring.xml]: Cannot resolve reference to bean 'modelService' while setting bean property 'modelService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultModelService' defined in class path resource [servicelayer-spring.xml]: Cannot resolve reference to bean 'changeSetBuilder' while setting bean property 'changeSetBuilder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultChangeSetBuilder' defined in class path resource [servicelayer-spring.xml]: Cannot resolve reference to bean 'localizedAttributesProcessor' while setting bean property 'localizedAttributesProcessor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'localizedAttributesProcessor' defined in class path resource [servicelayer-spring.xml]: Cannot resolve reference to bean 'i18nService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultI18NService' defined in class path resource [i18n-spring.xml]: Cannot resolve reference to bean 'sessionService' while setting bean property 'sessionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'airgasSessionService' defined in class path resource [airgasservices-spring.xml]: Cannot resolve reference to bean 'endecaSecurityFilterService' while setting bean property 'endecaSecurityFilterService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'endecaSecurityFilterService' defined in class path resource [airgasservices-spring.xml]: Cannot resolve reference to bean 'b2bCustomerService' while setting bean property 'b2bCustomerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'airgasB2BCustomerService' defined in class path resource [airgasservices-spring.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultAirgasUserService' defined in class path resource [airgasservices-spring.xml]: Cannot resolve reference to bean 'cartService' while setting bean property 'cartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultAirgasCartServiceForAccelerator' defined in class path resource [airgasservices-spring.xml]: Cannot resolve reference to bean 'cloneAbstractOrderStrategy' while setting bean property 'cloneAbstractOrderStrategy'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'defaultCloneAbstractOrderStrategy': Requested bean is currently in creation: Is there an unresolvable circular reference? INFO | jvm 1 | main | 2017/08/23 17:00:37.356 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) INFO | jvm 1 | main | 2017/08/23 17:00:37.359 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) INFO | jvm 1 | main | 2017/08/23 17:00:37.362 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) INFO | jvm 1 | main | 2017/08/23 17:00:37.367 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) INFO | jvm 1 | main | 2017/08/23 17:00:37.370 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) INFO | jvm 1 | main | 2017/08/23 17:00:37.373 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) INFO | jvm 1 | main | 2017/08/23 17:00:37.376 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) INFO | jvm 1 | main | 2017/08/23 17:00:37.380 | at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232) INFO | jvm 1 | main | 2017/08/23 17:00:37.383 | at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:615) INFO | jvm 1 | main | 2017/08/23 17:00:37.388 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465) INFO | jvm 1 | main | 2017/08/23 17:00:37.391 | at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:98) INFO | jvm 1 | main | 2017/08/23 17:00:37.393 | at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:266) INFO | jvm 1 | main | 2017/08/23 17:00:37.397 | at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:90) INFO | jvm 1 | main | 2017/08/23 17:00:37.400 | at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:690) INFO | jvm 1 | main | 2017/08/23 17:00:37.402 | at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:728) INFO | jvm 1 | main | 2017/08/23 17:00:37.404 | at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:662) INFO | jvm 1 | main | 2017/08/23 17:00:37.406 | at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:639) INFO | jvm 1 | main | 2017/08/23 17:00:37.407 | at de.hybris.platform.core.Registry.activateTenant(Registry.java:700) INFO | jvm 1 | main | 2017/08/23 17:00:37.409 | at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:544) INFO | jvm 1 | main | 2017/08/23 17:00:37.410 | at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:607) INFO | jvm 1 | main | 2017/08/23 17:00:37.412 | at de.hybris.platform.core.Registry.startup(Registry.java:422) INFO | jvm 1 | main | 2017/08/23 17:00:37.413 | at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:237) INFO | jvm 1 | main | 2017/08/23 17:00:37.416 | at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:135) INFO | jvm 1 | main | 2017/08/23 17:00:37.419 | at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:125) INFO | jvm 1 | main | 2017/08/23 17:00:37.423 | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) INFO | jvm 1 | main | 2017/08/23 17:00:37.426 | at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:80) INFO | jvm 1 | main | 2017/08/23 17:00:37.429 | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016) INFO | jvm 1 | main | 2017/08/23 17:00:37.431 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524) INFO | jvm 1 | main | 2017/08/23 17:00:37.433 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) INFO | jvm 1 | main | 2017/08/23 17:00:37.435 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) INFO | jvm 1 | main | 2017/08/23 17:00:37.437 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) INFO | jvm 1 | main | 2017/08/23 17:00:37.439 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) INFO | jvm 1 | main | 2017/08/23 17:00:37.440 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) INFO | jvm 1 | main | 2017/08/23 17:00:37.442 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) INFO | jvm 1 | main | 2017/08/23 17:00:37.444 | at java.lang.Thread.run(Thread.java:745) INFO | jvm 1 | main | 2017/08/23 17:00:37.445 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name