org.springframework.beans.factory.BeanDefinitionStoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The standard Spring placeholder mechanism fails to work. For example, in {noformat} <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>proxy.properties</value> </list> </property> </bean> <http:connector name="httpConnector" clientSoTimeout="1234" cookieSpec="netscape" proxyHostname="${proxyHostname}" proxyPassword="${proxyPassword}" proxyPort="2345" proxyUsername="${proxyUsername}" receiveBacklog="34" receiveBufferSize="4567" sendBufferSize="5678" socketSoLinger="6789" serverSoTimeout="7890" enableCookies="true" keepAlive="true" keepSendSocketOpen="true" sendTcpNoDelay="true" validateConnections="false" /> {noformat} We get the error: {noformat} org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'httpConnector' defined in null: Could not resolve placeholder 'proxyHostname' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:249) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:467) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334) at org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:62) at org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:54) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:120) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:72) at org.mule.tck.FunctionalTestCase.createManagementContext(FunctionalTestCase.java:44) at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:223) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:175) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:145) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) {noformat}
    via by andrew cooke,
  • The standard Spring placeholder mechanism fails to work. For example, in {noformat} <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>proxy.properties</value> </list> </property> </bean> <http:connector name="httpConnector" clientSoTimeout="1234" cookieSpec="netscape" proxyHostname="${proxyHostname}" proxyPassword="${proxyPassword}" proxyPort="2345" proxyUsername="${proxyUsername}" receiveBacklog="34" receiveBufferSize="4567" sendBufferSize="5678" socketSoLinger="6789" serverSoTimeout="7890" enableCookies="true" keepAlive="true" keepSendSocketOpen="true" sendTcpNoDelay="true" validateConnections="false" /> {noformat} We get the error: {noformat} org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'httpConnector' defined in null: Could not resolve placeholder 'proxyHostname' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:249) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:467) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334) at org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:62) at org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:54) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:120) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:72) at org.mule.tck.FunctionalTestCase.createManagementContext(FunctionalTestCase.java:44) at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:223) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:175) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:145) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) {noformat}
    via by andrew cooke,
  • Tomcat server is running,getting 404 error
    via Stack Overflow by Kris27
    ,
  • Spring Webapplistener Issue
    via Stack Overflow by user2421457
    ,
  • Could not resolve Spring property placeholder
    via Stack Overflow by mjgirl
    ,
  • sessionFactory BeanDefinitionStoreException
    via Stack Overflow by jonney
    ,
  • How do I access properties in a JAR file?
    via Stack Overflow by Dave
    ,
    • org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'httpConnector' defined in null: Could not resolve placeholder 'proxyHostname' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:249) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:467) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334) at org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:62) at org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:54) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:120) at org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:72) at org.mule.tck.FunctionalTestCase.createManagementContext(FunctionalTestCase.java:44) at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:223) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:175) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:145) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

    Users with the same issue

    odd
    16 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    11 more bugmates