AbstractEnvironment.getProperty() 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)
at org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders
(source)
at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty
(source)
at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty
(source)
at org.springframework.core.env.AbstractEnvironment.getProperty
(source)
7 frames hidden

Typical Exception Messages

  1. Could not resolve placeholder 'project.version' in string value "${project.version}"
  2. Could not resolve placeholder 'mvn.databaseBean' in string value "${mvn.databaseBean}"
  3. Could not resolve placeholder 'projeto.pdv.database.jdbc.url' in string value "${projeto.pdv.database.jdbc.url}"
  4. Could not resolve placeholder 'POLARIS_SITE_ID' in string value "${POLARIS_SITE_ID}"
  5. Could not resolve placeholder 'spring.profiles.to.active' in string value "${spring.profiles.to.active}"
  6. Could not resolve placeholder 'stubrunner.runningstubs.myDependency-contracts.port' in string value "{'get_myDependency':'http://localhost:${stubrunner.runningstubs.myDependency-contracts.port}/myDependency/s2s/v1/v1/myDependencys/{myDependencyId}', 'post_myDependency': 'http://localhost:${stubrunner.runningstubs.myDependency-contracts.port}/myDependency/s2s/v1/v1/myDependencys', 'delete_myDependency':'http://localhost:${stubrunner.runningstubs.myDependency-contracts.port}/myDependency/s2s/v1/v1/myDependencys/{myDependencyId}' }"
  7. Could not resolve placeholder 'HOSTNAME' in string value "/var/log/hotwire/feedback/${ENVIRONMENT:local}/${ENVIRONMENT_TYPE:permanent}/${IMAGE_TAG:latest}/${HOSTNAME}/${CONTAINER_NAME}"
  8. Could not resolve placeholder 'HOME' in value "${HOME}/leafer-sfl4j.log"
  9. Could not resolve placeholder 'project.base-dir' in value "${project.base-dir}/src/main/resources/templates/"
  10. Could not resolve placeholder 'spring.embedded.kafka.brokers' in value "${spring.embedded.kafka.brokers}"

Origin

PropertySourcesPropertyResolver.getProperty() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
6 frames hidden
org.springframework.core.env.PropertySourcesPropertyResolver.getProperty
12Web pages

Specific cases

External results for this pattern (11)

  1. Could not resolve placeholder 'MANAGEMENT_PORT' in value "${MANAGEMENT_PORT}"
    Show stack trace
  2. samko635via GitHub1 month ago
    Could not resolve placeholder 'MESSENGER_APP_SECRET' in string value "${MESSENGER_APP_SECRET}"
    Show stack trace
  3. vulncheckervia GitHub3 months ago
    Could not resolve placeholder 'pom.version' in string value "${pom.version}"
    Show stack trace
  4. tarovia Stack Overflow3 months ago
    Could not resolve placeholder 'spring.embedded.kafka.brokers' in value "${spring.embedded.kafka.brokers}"
    Show stack trace
  5. default-errorvia GitHub4 months ago
    Could not resolve placeholder 'DATAGATE_MONGO_USER' in value "${DATAGATE_MONGO_USER}"
    Show stack trace
  6. JessonYuevia GitHub7 months ago
    Could not resolve placeholder '盲陆聽莽職聞tomcat猫路炉氓戮聞' in string value "${盲陆聽莽職聞tomcat猫路炉氓戮聞}/webapps/patch-manager-static"
    Show stack trace
  7. Arefevia Stack Overflow9 months ago
    Could not resolve placeholder 'BASE' in value "${BASE}"
    Show stack trace
  8. zkh26via GitHub1 year ago
    Could not resolve placeholder 'HOME' in value "${HOME}/leafer-sfl4j.log"
    Show stack trace
  9. jot-hubvia GitHub1 year ago
    Could not resolve placeholder 'stubrunner.runningstubs.myDependency-contracts.port' in string value "{'get_myDependency':'http://localhost:${stubrunner.runningstubs.myDependency-contracts.port}/myDependency/s2s/v1/v1/myDependencys/{myDependencyId}', 'post_myDependency': 'http://localhost:${stubrunner.runningstubs.myDependency-contracts.port}/myDependency/s2s/v1/v1/myDependencys', 'delete_myDependency':'http://localhost:${stubrunner.runningstubs.myDependency-contracts.port}/myDependency/s2s/v1/v1/myDependencys/{myDependencyId}' }"
    Show stack trace
  10. Could not resolve placeholder 'spring.profiles.to.active' in string value "${spring.profiles.to.active}"
    Show stack trace