Symptom
During start up process of OOTB Hybris eCommerce Platform we can see in the log following exception, which was thrown:
INFO [localhost-startStop-1] [DefaultSolrServerService] Stopping Solr server for instance [name: default, hostname: localhost, port: 8983]
de.hybris.platform.core.UninstantiableCoreApplicationContextException: Error creating Spring application context.
at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:737)
at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:667)
at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:648)
at de.hybris.platform.core.Registry.activateTenant(Registry.java:709)
at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:553)
at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:616)
at de.hybris.platform.core.Registry.startup(Registry.java:431)
at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:265)
at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:153)
at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:143)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:79)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'sapcrmb2bContactIdGenerator' defined in class path resource [sapcrmcustomerb2b-spring.xml]: Could not resolve placeholder 'keygen.crmcustomer.sap_contact_id.start' in string value "${keygen.crmcustomer.sap_contact_id.start}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'keygen.crmcustomer.sap_contact_id.start' in string value "${keygen.crmcustomer.sap_contact_id.start}"
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:223)
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:222)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:166)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)
at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:95)
at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:263)
at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:87)
at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:695)
at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:733)
... 20 more
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'keygen.crmcustomer.sap_contact_id.start' in string value "${keygen.crmcustomer.sap_contact_id.start}"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringValue(PropertyPlaceholderConfigurer.java:258)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82)
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:220)
Read more...
Environment
SAP Hybris eCommerce Platform with integration extentions to SAP CRM
Product
Keywords
KBA , CEC-SCC-INT-CRM , CRM 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.
SAP Knowledge Base Article - Preview