You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/08/31 17:36:00 UTC
[jira] [Commented] (LOG4J2-2026) java.lang.AbstractMethodError:
javax.xml.parsers.DocumentBuilderFactory.setFeature()
[ https://issues.apache.org/jira/browse/LOG4J2-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16149304#comment-16149304 ]
ASF subversion and git services commented on LOG4J2-2026:
---------------------------------------------------------
Commit 8e222830e3beac05dd44ed7198d9f5099a26cdfd in logging-log4j2's branch refs/heads/master from [~garydgregory]
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=8e22283 ]
[LOG4J2-2026] java.lang.AbstractMethodError:
javax.xml.parsers.DocumentBuilderFactory.setFeature().
> java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature()
> ------------------------------------------------------------------------------------
>
> Key: LOG4J2-2026
> URL: https://issues.apache.org/jira/browse/LOG4J2-2026
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.9.0
> Reporter: Leon Finker
> Assignee: Gary Gregory
> Priority: Minor
> Fix For: 2.9.1
>
>
> Hi,
> Tested 2.9.0 RC1 and noticed one issue due to xerces 2.6.2 version being used on one big app. It causes log4j2 failure to initialize (changes are from LOG4J2-1959):
> Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
> at org.apache.logging.log4j.core.config.xml.XmlConfiguration.disableDtdProcessing(XmlConfiguration.java:205)
> at org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:194)
> at org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:92)
> at org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
> at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:239)
> at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:369)
> at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:237)
> at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:158)
> at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:131)
> at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:101)
> at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:188)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)