Repository: logging-log4j2
Updated Branches:
  refs/heads/master d4cbbfa5d -> 80d025ba6


[LOG4J2-2283] ParserConfigurationException when using Log4j with
oracle.xml.jaxp.JXDocumentBuilderFactory.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/80d025ba
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/80d025ba
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/80d025ba

Branch: refs/heads/master
Commit: 80d025ba68fc12d7b4d767fb25455306878279e1
Parents: d4cbbfa
Author: Gary Gregory <[email protected]>
Authored: Tue Mar 20 16:47:33 2018 -0600
Committer: Gary Gregory <[email protected]>
Committed: Tue Mar 20 16:47:33 2018 -0600

----------------------------------------------------------------------
 .../logging/log4j/core/config/xml/XmlConfiguration.java       | 7 ++-----
 src/changes/changes.xml                                       | 3 +++
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/80d025ba/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
index 7efb6ab..07d5740 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/xml/XmlConfiguration.java
@@ -199,7 +199,7 @@ public class XmlConfiguration extends AbstractConfiguration 
implements Reconfigu
         return factory.newDocumentBuilder();
     }
 
-    private static void disableDtdProcessing(final DocumentBuilderFactory 
factory) throws ParserConfigurationException {
+    private static void disableDtdProcessing(final DocumentBuilderFactory 
factory) {
         factory.setValidating(false);
         factory.setExpandEntityReferences(false);
         setFeature(factory, 
"http://xml.org/sax/features/external-general-entities";, false);
@@ -207,12 +207,9 @@ public class XmlConfiguration extends 
AbstractConfiguration implements Reconfigu
         setFeature(factory, 
"http://apache.org/xml/features/nonvalidating/load-external-dtd";, false);
     }
     
-    private static void setFeature(final DocumentBuilderFactory factory, final 
String featureName, final boolean value)
-            throws ParserConfigurationException {
+    private static void setFeature(final DocumentBuilderFactory factory, final 
String featureName, final boolean value) {
         try {
             factory.setFeature(featureName, value);
-        } catch (ParserConfigurationException e) {
-            throw e;
         } catch (Exception | LinkageError e) {
             getStatusLogger().error("Caught {} setting feature {} to {} on 
DocumentBuilderFactory {}: {}",
                     e.getClass().getCanonicalName(), featureName, value, 
factory, e, e);

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/80d025ba/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1f1d160..83dc4d7 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -103,6 +103,9 @@
       <action issue="LOG4J2-2279" dev="ggregory" type="fix" due-to="Remko 
Popma">
         Move ProcessIdUtil from log4j-api to log4j-core.
       </action>      
+      <action issue="LOG4J2-2283" dev="ggregory" type="fix" due-to="Vishnu 
Priya Matha">
+        ParserConfigurationException when using Log4j with 
oracle.xml.jaxp.JXDocumentBuilderFactory.
+      </action>
     </release>
     <release version="2.11.0" date="2018-xx-xx" description="GA Release 
2.11.0">
       <action issue="LOG4J2-2104" dev="rgoers" type="fix">

Reply via email to