Apache Lucene open-source search software
SOLR-241: Undefined system properties used in configuration files now cause a clear message to be logged rather than an obscure exception thrown.
Erik Hatcher2ddd39225acf
diff --git a/CHANGES.txt b/CHANGES.txtindex ee9d4fde241..afed3d14f1a 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -306,7 +306,11 @@ Bug Fixescontent. Using the contentType: "text/xml; charset=utf-8" will forceutf-8 encoding. If you do not specify a contentType, it will use theplatform 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 Changes1. Updated to Lucene 2.1diff --git a/src/java/org/apache/solr/core/Config.java b/src/java/org/apache/solr/core/Config.javaindex 036206e8fe1..aa823bb079e 100644--- a/src/java/org/apache/solr/core/Config.java+++ b/src/java/org/apache/solr/core/Config.java@@ -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() {