[java-opensaml COMMIT] /trunk/opensaml-core/src/main/java/org/opensaml/xml/XMLConfigurator.java
noreply at shibboleth.net
noreply at shibboleth.net
Thu Mar 22 22:21:52 GMT 2012
Author: putmanb
Date: Thu Mar 22 22:21:51 2012
New Revision: 2955
URL: http://svn.shibboleth.net/view/java-opensaml?rev=2955&view=rev
Log:
XML configurator parser pool must now be explicitly initialized.
Modified:
trunk/opensaml-core/src/main/java/org/opensaml/xml/XMLConfigurator.java
Modified: trunk/opensaml-core/src/main/java/org/opensaml/xml/XMLConfigurator.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-core/src/main/java/org/opensaml/xml/XMLConfigurator.java?rev=2955&r1=2954&r2=2955&view=diff
==============================================================================
--- trunk/opensaml-core/src/main/java/org/opensaml/xml/XMLConfigurator.java (original)
+++ trunk/opensaml-core/src/main/java/org/opensaml/xml/XMLConfigurator.java Thu Mar 22 22:21:51 2012
@@ -31,6 +31,7 @@
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
+import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
import net.shibboleth.utilities.java.support.primitive.StringSupport;
import net.shibboleth.utilities.java.support.xml.AttributeSupport;
import net.shibboleth.utilities.java.support.xml.BasicParserPool;
@@ -113,8 +114,11 @@
parserPool.setIgnoreComments(true);
parserPool.setIgnoreElementContentWhitespace(true);
parserPool.setSchema(configurationSchema);
+ parserPool.initialize();
} catch (SAXException e) {
throw new ConfigurationException("Unable to read XMLTooling configuration schema", e);
+ } catch (ComponentInitializationException e) {
+ throw new ConfigurationException("Unable to initialize parser pool", e);
}
synchronized (ConfigurationService.class) {
More information about the commits
mailing list