Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1381

module ch.qos.logback.core does not read module java.xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0-alpha4
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      It seems that the module descriptor for logback-core is missing a "requires" clause for java.xml:

      Exception in thread "main" java.lang.IllegalAccessError: class ch.qos.logback.core.joran.GenericConfigurator (in module ch.qos.logback.core) cannot access class org.xml.sax.InputSource (in module java.xml) because module ch.qos.logback.core does not read module java.xml
              at ch.qos.logback.core/ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:108)
              at ch.qos.logback.core/ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
              at ch.qos.logback.classic/ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:82)
              at ch.qos.logback.classic/ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:157)
              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)
      
      

      There's a trivial repro case at https://github.com/io7m/logback-bug-20180211.

      Just "mvn clean package && ./run.sh"

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              io7m Mark Raynsford
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: