У меня есть следующая настройка компонента
<bean id="server-engine"
class="RuleEngineRESJSE">
<constructor-arg index="0" value="package.rulesengine.log" />
</bean>
Однако я получаю сообщение об ошибке:
Constructor threw exception; nested exception is java.lang.IllegalStateException: The value of rulesLogProperty was not found
Конструктор просто принимает строковый аргумент для rulesLogProperty
public RuleEngineRESJSE(String rulesLogProperty) throws IOException {
if(rulesLogProperty == null)
throw new IllegalStateException("The rulesLogProperty value is expected");
this.log = System.getProperty(rulesLogProperty);
if(log == null)
throw new IllegalStateException("The value of rulesLogProperty was not found");
init();
}
так что я вижу, что исключение выбрасывается.что заставило бы меня думать, что:
this.log = System.getProperty(rulesLogProperty)
проблема, но почему?