org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'httpConnector' defined in null: Could not resolve placeholder 'proxyHostname'

MuleSoft JIRA | andrew cooke | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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}

    MuleSoft JIRA | 10 years ago | andrew cooke
    org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'httpConnector' defined in null: Could not resolve placeholder 'proxyHostname'
  2. 0

    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}

    MuleSoft JIRA | 10 years ago | andrew cooke
    org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'httpConnector' defined in null: Could not resolve placeholder 'proxyHostname'
  3. 0

    Tomcat server is running,getting 404 error

    Stack Overflow | 3 years ago | Kris27
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'CWSJMSClient' defined in class path resource [SpringIntegration.xml]: Could not resolve placeholder 'VHF.CWS.Hybrid.Contract.RequestQueue'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring ,could not resolve place holder,can someone explain me

    Stack Overflow | 3 years ago | Kris27
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'CWSJMSClient' defined in class path resource [SpringIntegration.xml]: Could not resolve placeholder 'VHF.CWS.Hybrid.Contract.RequestQueue'
  6. 0

    Spring Webapplistener Issue

    Stack Overflow | 4 years ago | user2421457
    org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'fetchArticleService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: ERROR: Configuration not loaded or initialized.

    15 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Spring Beans
      PropertyResourceConfigurer.postProcessBeanFactory
      1. org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:249)
      2. org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
      2 frames
    3. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:467)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334)
      2 frames
    4. Spring Config
      MuleApplicationContext.<init>
      1. org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:62)
      2. org.mule.config.spring.MuleApplicationContext.<init>(MuleApplicationContext.java:54)
      2 frames
    5. Mule Core
      MuleXmlConfigurationBuilder.configure
      1. org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:120)
      2. org.mule.config.builders.MuleXmlConfigurationBuilder.configure(MuleXmlConfigurationBuilder.java:72)
      2 frames
    6. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.run
      1. org.mule.tck.FunctionalTestCase.createManagementContext(FunctionalTestCase.java:44)
      2. org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:223)
      3. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:175)
      4. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:145)
      4 frames
    7. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      1 frame
    8. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    9. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      1 frame