You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Leon Finker (JIRA)" <ji...@apache.org> on 2017/09/01 17:28: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=16150873#comment-16150873 ] 

Leon Finker commented on LOG4J2-2026:
-------------------------------------

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):
> 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)