SOLR-241: Undefined system properties used in configuration files now cause a clear message to be logged rather than an obscure exception thrown.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@538800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-05-17 03:40:17 +00:00
parent 0d968a3ff0
commit 2ddd39225a
2 changed files with 12 additions and 2 deletions

View File

@ -306,7 +306,11 @@ Bug Fixes
content. Using the contentType: "text/xml; charset=utf-8" will force
utf-8 encoding. If you do not specify a contentType, it will use the
platform default. (Koji Sekiguchi via ryan)
15. SOLR-241: Undefined system properties used in configuration files now
cause a clear message to be logged rather than an obscure exception thrown.
(Koji Sekiguchi via ehatcher)
Other Changes
1. Updated to Lucene 2.1

View File

@ -64,7 +64,13 @@ public class Config {
javax.xml.parsers.DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
doc = builder.parse(is);
DOMUtil.substituteSystemProperties(doc);
try{
DOMUtil.substituteSystemProperties(doc);
}
catch( SolrException e ){
SolrException.log(log,"Error in "+name,e);
throw e;
}
}
public Document getDocument() {