Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3036

ERROR StatusLogger Exception with latest log4j2 version (2.14.0)

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Configurators, Plugins
    • Labels:
      None
    • Environment:

      maven

      java 8

      Description

      Hi, when i run mvn clean install -pl 'my project' i'm getting an error, this happends when maven through maven antrun plugin ( version 3.0.0) run main class in which i'm trying to initialize logger, i using the latest version of log4j2, please help me to understand what is it ang how to fix it. Thank you in advance!
      P.S.: After these errors logger initialized successfuly, but how to fix it?

      [INFO]      [java] ERROR StatusLogger Caught java.lang.AbstractMethodError setting feature http://xml.org/sax/features/external-general-entities to false on DocumentBuilderFactory org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@706a04ae: java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
      [INFO]      [java]  java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.setFeature(XmlConfiguration.java:204)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.disableDtdProcessing(XmlConfiguration.java:197)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:186)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:89)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:302)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:467)
      [INFO]      [java] 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:240)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:159)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:131)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:101)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:210)
      [INFO]      [java] 	at ua.cetelem.LOG.init(LOG.java:42)
      [INFO]      [java] 	at ua.cetelem.expertsystem.tools.drools.DRoolsCompiller.main(DRoolsCompiller.java:207)
      [INFO]      [java] ERROR StatusLogger Caught java.lang.AbstractMethodError setting feature http://xml.org/sax/features/external-parameter-entities to false on DocumentBuilderFactory org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@706a04ae: java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
      [INFO]      [java]  java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.setFeature(XmlConfiguration.java:204)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.disableDtdProcessing(XmlConfiguration.java:198)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:186)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:89)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:302)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:467)
      [INFO]      [java] 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:240)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:159)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:131)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:101)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:210)
      [INFO]      [java] 	at ua.cetelem.LOG.init(LOG.java:42)
      [INFO]      [java] 	at ua.cetelem.expertsystem.tools.drools.DRoolsCompiller.main(DRoolsCompiller.java:207)
      [INFO]      [java] ERROR StatusLogger Caught java.lang.AbstractMethodError setting feature http://apache.org/xml/features/nonvalidating/load-external-dtd to false on DocumentBuilderFactory org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@706a04ae: java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
      [INFO]      [java]  java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.setFeature(XmlConfiguration.java:204)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.disableDtdProcessing(XmlConfiguration.java:199)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.newDocumentBuilder(XmlConfiguration.java:186)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:89)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:302)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:467)
      [INFO]      [java] 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:240)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:159)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:131)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:101)
      [INFO]      [java] 	at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:210)
      
      

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mholovach Mykola Holovach
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: