[logback-dev] [JIRA] (LOGBACK-1269) java.lang.NoSuchMethodError: ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty()

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Feb 28 16:26:00 CET 2017


Seweryn Habdank-Wojewodzki created LOGBACK-1269:
---------------------------------------------------

             Summary: java.lang.NoSuchMethodError: ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty()
                 Key: LOGBACK-1269
                 URL: https://jira.qos.ch/browse/LOGBACK-1269
             Project: logback
          Issue Type: Bug
    Affects Versions: 1.2.1, 1.2.0
         Environment: Windows 10
            Reporter: Seweryn Habdank-Wojewodzki
            Assignee: Logback dev list


The simple code:

{color:#cc7832}private static final {color}Logger {color:#9876aa}LOG {color}= LoggerFactory.getLogger( App.{color:#cc7832}class {color}){color:#cc7832};{color}

causes at the application startup:

Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
java.lang.NoSuchMethodError: ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty()V
    at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:65)
    at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269)
    at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
    at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128)
    at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
    at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
    at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
    at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
    at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
    at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
    at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
    at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
    at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
    at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
    at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
    at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
    at at.spardat.clj.App.<clinit>(App.java:20)

 



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list