AbstractPropertyResolver.doResolvePlaceholders() 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)
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty
at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty
(source)
at org.springframework.core.env.PropertySourcesPropertyResolver.getPropertyAsRawString
(source)
at org.springframework.core.env.AbstractPropertyResolver$1.resolvePlaceholder
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue
(source)
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders
(source)
at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders
(source)
15 frames hidden

Typical Exception Messages

  1. Failed to load ApplicationContext
  2. Error creating bean with name 'application': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.app.Application.setSoftwareVersion(java.lang.String); nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'project.version' in string value "${project.version}"
  3. Error creating bean with name 'ESBRouter': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'POLARIS_SITE_ID' in string value "${POLARIS_SITE_ID}"
  4. Error creating bean with name 'myController' defined in file [C:\myProject\myApp\target\classes\com\myCompany\myTeam\myComponent\controller\myController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myCompObjectService': Unsatisfied dependency expressed through field 'myHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myHelper': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: 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}' }"
  5. Error creating bean with name 'portalAPI': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'version' in value "${version}"
  6. Error creating bean with name 'customHealth' defined in file [/home/gorka/IdeaProjects/eventnotifier/target/classes/com/rappi/actuator/CustomHealth.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settings': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'CORE_TIMEZONE_FOR_TIMESTAMPS' in value "${CORE_TIMEZONE_FOR_TIMESTAMPS}"
  7. Error creating bean with name 'patchService': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder '盲陆聽莽職聞tomcat猫路炉氓戮聞' in string value "${盲陆聽莽職聞tomcat猫路炉氓戮聞}/webapps/patch-manager-static"
  8. Error creating bean with name 'nitriteDataGate': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'DATAGATE_MONGO_USER' in value "${DATAGATE_MONGO_USER}"

Origin

PropertySourcesPropertyResolver.getPropertyAsRawString() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
11 frames hidden
org.springframework.core.env.PropertySourcesPropertyResolver.getPropertyAsRawString
6Web pages

Similar

Specific cases

External results for this pattern (6)

  1. default-errorvia GitHub6 months ago
    Error creating bean with name 'nitriteDataGate': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'DATAGATE_MONGO_USER' in value "${DATAGATE_MONGO_USER}"
    Show stack trace
  2. JessonYuevia GitHub9 months ago
    Error creating bean with name 'patchService': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder '盲陆聽莽職聞tomcat猫路炉氓戮聞' in string value "${盲陆聽莽職聞tomcat猫路炉氓戮聞}/webapps/patch-manager-static"
    Show stack trace
  3. jot-hubvia GitHub1 year ago
    Error creating bean with name 'myController' defined in file [C:\myProject\myApp\target\classes\com\myCompany\myTeam\myComponent\controller\myController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myCompObjectService': Unsatisfied dependency expressed through field 'myHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myHelper': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: 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
  4. Error creating bean with name 'application': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.app.Application.setSoftwareVersion(java.lang.String); nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'project.version' in string value "${project.version}"
    Show stack trace