[java-opensaml COMMIT] /trunk/opensaml-xmlsec-api/src/main/java/org/opensaml/xml/encryption/Decrypter.java
noreply at shibboleth.net
noreply at shibboleth.net
Tue Mar 27 20:36:00 BST 2012
Author: putmanb
Date: Tue Mar 27 20:36:00 2012
New Revision: 2961
URL: http://svn.shibboleth.net/view/java-opensaml?rev=2961&view=rev
Log:
Fix some unit tests failing due to refactoring.
Modified:
trunk/opensaml-xmlsec-api/src/main/java/org/opensaml/xml/encryption/Decrypter.java
Modified: trunk/opensaml-xmlsec-api/src/main/java/org/opensaml/xml/encryption/Decrypter.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-xmlsec-api/src/main/java/org/opensaml/xml/encryption/Decrypter.java?rev=2961&r1=2960&r2=2961&view=diff
==============================================================================
--- trunk/opensaml-xmlsec-api/src/main/java/org/opensaml/xml/encryption/Decrypter.java (original)
+++ trunk/opensaml-xmlsec-api/src/main/java/org/opensaml/xml/encryption/Decrypter.java Tue Mar 27 20:36:00 2012
@@ -27,6 +27,7 @@
import java.util.List;
import java.util.Set;
+import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
import net.shibboleth.utilities.java.support.primitive.StringSupport;
import net.shibboleth.utilities.java.support.resolver.CriteriaSet;
import net.shibboleth.utilities.java.support.resolver.Criterion;
@@ -229,6 +230,12 @@
HashMap<String, Boolean> features = new HashMap<String, Boolean>();
features.put("http://apache.org/xml/features/dom/defer-node-expansion", Boolean.FALSE);
parserPool.setBuilderFeatures(features);
+
+ try {
+ parserPool.initialize();
+ } catch (ComponentInitializationException e) {
+ log.error("Error initializing decrypter's internal parser pool", e);
+ }
unmarshallerFactory = XMLObjectProviderRegistrySupport.getUnmarshallerFactory();
More information about the commits
mailing list