AbstractPropertyResolver.resolveRequiredPlaceholders() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue
(Source)
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders
(Source)
at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders
(Source)
at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders
(Source)
4 frames hidden

Typical Exception Messages

  1. Could not resolve placeholder 'amqp.rabbitmq.broker.url' in value "${amqp.rabbitmq.broker.url}"
  2. Could not resolve placeholder 'migration.pool.min-size' in value "${migration.pool.min-size}"
  3. Could not resolve placeholder 'very-so-much' in string value "${very-so-much}"
  4. Could not resolve placeholder 'PWD/#$HOME/~' in string value "echo -ne "\033]0;${PWD/#$HOME/~}\007""
  5. Could not resolve placeholder 'jdbc.driverClassName' in string value "${jdbc.driverClassName}"
  6. Could not resolve placeholder 'concorde-env' in string value "classpath:/server.${concorde-env}.properties"
  7. Could not resolve placeholder 'location' in string value "${location}"
  8. Could not resolve placeholder 'xd.stream.name' in string value "${xd.stream.name}"
  9. Could not resolve placeholder 'spring.data.mongodb.host' in string value "${spring.data.mongodb.host}"
  10. Could not resolve placeholder 'message' in value "${message}"

Origin

Similar

Specific cases

We have seen this error pattern in the following webpages (77)

  1. Failed to load ApplicationContext
  2. madoarvia GitHub1 week ago
    Error creating bean with name 'org.phoenicis.javafx.controller.ControllerConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.phoenicis.javafx.views.ViewsConfiguration org.phoenicis.javafx.controller.ControllerConfiguration.viewsConfiguration; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.phoenicis.javafx.views.ViewsConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.String org.phoenicis.javafx.views.ViewsConfiguration.applicationGitRevision; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'buildNumber' in string value "${buildNumber}" Exception in Application start method java.lang.reflect.InvocationTargetException
  3. Error creating bean with name 'springCloudConfigExampleClientApplication': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'message' in value "${message}"
  4. pramod3091via GitHub1 month ago
    Invalid bean definition with name 'identityZoneConfigurationBootstrap' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Could not resolve placeholder 'login.serviceProviderKey' in string value "${login.serviceProviderKey}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'login.serviceProviderKey' in string value "${login.serviceProviderKey}"
  5. xuzhenatme8via GitHub1 month ago
    Error creating bean with name 'converterUtils': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'office.home' in value "${office.home}"
  6. Error creating bean with name 'statusController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'my.var' in value "${my.var}"
  7. Am1rr3zAvia Stack Overflow2 months ago
    Error creating bean with name 'springKafkaApplication': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'sampleInput' in value "${sampleInput}"
  8. sumanth35via GitHub2 months ago
    Invalid bean definition with name 'wordcountJob' defined in null: Could not resolve placeholder 'app.repo' in string value "file:${app.repo}/hadoop-examples-*.jar"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'app.repo' in string value "file:${app.repo}/hadoop-examples-*.jar"
  9. Error creating bean with name 'configClientApplication': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'content' in value "${content}"
  10. solovia Stack Overflow2 months ago
    Failed to load ApplicationContext