houjibo opened a new issue #1133: IllegalArgumentException at 
ConfigurationSpringInitializer#getProperties 
URL: https://github.com/apache/servicecomb-java-chassis/issues/1133
 
 
   Method of ConfigurationSpringInitializer#getProperties with 
environment.getProperty(propertyName) throw an IllegalArgumentException
   
   Suggest to modify setEnvironment around this.getAllProperties(environment) , 
setIgnoreUnresolvableNestedPlaceholders as true!
   
   
   Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 
'ip' in value "jdbc:postgresql://${ip}:${port}/pt"
        at 
org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:236)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:210)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders(AbstractPropertyResolver.java:227)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:84)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:61)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:531)
 ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE]
        at 
org.apache.servicecomb.config.ConfigurationSpringInitializer.getProperties(ConfigurationSpringInitializer.java:141)
 ~[foundation-config-1.1.0.jar:1.1.0]
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to