[logback-dev] [JIRA] (LOGBACK-1380) ServiceConfigurationError: module ch.qos.logback.classic does not declare `uses`

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Feb 9 18:43:00 CET 2018


Mark Raynsford created LOGBACK-1380:
---------------------------------------

             Summary: ServiceConfigurationError: module ch.qos.logback.classic does not declare `uses`
                 Key: LOGBACK-1380
                 URL: https://jira.qos.ch/browse/LOGBACK-1380
             Project: logback
          Issue Type: Bug
          Components: logback-classic
    Affects Versions: 1.3.0-alpha1
         Environment: On attempting to call LoggerFactory.getLogger(), the package raises the following exception:

{noformat}
Exception in thread "main" java.util.ServiceConfigurationError: ch.qos.logback.classic.spi.Configurator: module ch.qos.logback.classic does not declare `uses`
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:588)
	at java.base/java.util.ServiceLoader.checkCaller(ServiceLoader.java:574)
	at java.base/java.util.ServiceLoader.<init>(ServiceLoader.java:503)
	at java.base/java.util.ServiceLoader.load(ServiceLoader.java:1639)
	at ch.qos.logback.classic/ch.qos.logback.classic.util.EnvUtil.loadFromServiceLoader(EnvUtil.java:48)
	at ch.qos.logback.classic/ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:155)
	at ch.qos.logback.classic/ch.qos.logback.classic.spi.LogbackServiceProvider.initializeLoggerContext(LogbackServiceProvider.java:49)
	at ch.qos.logback.classic/ch.qos.logback.classic.spi.LogbackServiceProvider.initialize(LogbackServiceProvider.java:40)
	at org.slf4j/org.slf4j.LoggerFactory.bind(LoggerFactory.java:153)
	at org.slf4j/org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:141)
	at org.slf4j/org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:419)
	at org.slf4j/org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:405)
	at org.slf4j/org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:354)
	at org.slf4j/org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:380)
	at com.io7m.bugs.logback/com.io7m.bugs.logback.Main.<clinit>(Main.java:8)
{noformat}

There's a trivial repro case here:

https://github.com/io7m/logback-bug-20180209
            Reporter: Mark Raynsford
            Assignee: Logback dev list






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


More information about the logback-dev mailing list