[
https://issues.apache.org/jira/browse/LOG4J2-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16150873#comment-16150873
]
Gary Gregory edited comment on LOG4J2-2026 at 9/1/17 5:45 PM:
--
The change doesn't handle AbstractMethodError which is not Exception based:
{noformat}
Object (java.lang)
Throwable (java.lang)
Error (java.lang)
LinkageError (java.lang)
IncompatibleClassChangeError (java.lang)
AbstractMethodError (java.lang)
{noformat}
was (Author: leonfin):
The change doesn't handle AbstractMethodError which is not Exception based:
Object (java.lang)
Throwable (java.lang)
Error (java.lang)
LinkageError (java.lang)
IncompatibleClassChangeError (java.lang)
AbstractMethodError (java.lang)
> 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):
> {noformat}
> 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.(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)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)