Announcement Announcement Module
Collapse
No announcement yet.
STS Internal errors when building Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS Internal errors when building

    I noticed the following logging out in my Error Log panel:

    Code:
    java.lang.IllegalArgumentException: Could not resolve placeholder 'concorde-env' in string value "classpath:/server.${concorde-env}.properties"
    	at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:173)
    	at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125)
    	at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:151)
    	at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:142)
    	at org.springframework.core.env.AbstractEnvironment.resolveRequiredPlaceholders(AbstractEnvironment.java:464)
    	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:186)
    	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:147)
    	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:124)
    	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:289)
    	at org.springframework.ide.eclipse.metadata.process.JdtConfigurationClassPostProcessor.postProcess(JdtConfigurationClassPostProcessor.java:73)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$4.run(BeansConfig.java:748)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.executePostProcessor(BeansConfig.java:741)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.postProcess(BeansConfig.java:625)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.access$8(BeansConfig.java:584)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:450)
    	at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1)
    	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:722)
    I use variables inside my spring bean definitions, like follows:

    Code:
    	<context:property-placeholder
    		location="classpath:server.common.properties,
    		classpath:server.${concorde-env}.properties" />
    
    	<import resource="environment.${concorde-env}.beans.xml" />
    This works fine at run-time, but I wasn't expecting to have to pass variables at build-time.

    How can I either:
    a) Pass the required variable into the compiler?
    b) Disable whatever compiler is running that's throwing this error.

  • #2
    Hey!

    Thanks for reporting this. I think this is a limitation in the current implementation and I filed a JIRA ticket to track this:
    https://issuetracker.springsource.com/browse/STS-3423

    As a workaround for this, you could:
    a) remove the spring config files from the Spring project configuration (project properties -> Spring -> Beans Support)
    b) a more drastic way would be to disable the Spring project builder completely for this project (project properties -> Builders -> Spring Project Builder)

    HTH,
    Martin

    Comment

    Working...
    X