Hi,

Reported initially to Quality Outreach via
https://groups.google.com/forum/#!topic/jitwatch/gh3Ybdd4A84

Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
java.lang.InternalError: unnamed package in named module java.base
        at
jdk.internal.misc.BuiltinClassLoader.definePackage([email protected]/BuiltinClassLoader.java:569)
        at
jdk.internal.misc.BootLoader.definePackage([email protected]/BootLoader.java:123)
        at java.lang.Class.getPackage([email protected]/Class.java:917)
        at
ch.qos.logback.core.joran.util.StringToObjectConverter.canBeBuiltFromSimpleString(StringToObjectConverter.java:34)
        at
ch.qos.logback.core.joran.util.PropertySetter.computeRawAggregationType(PropertySetter.java:233)
        at
ch.qos.logback.core.joran.util.PropertySetter.computeAggregationType(PropertySetter.java:194)
        at
ch.qos.logback.core.joran.action.NestedComplexPropertyIA.isApplicable(NestedComplexPropertyIA.java:61)
        at
ch.qos.logback.core.joran.spi.Interpreter.lookupImplicitAction(Interpreter.java:237)
        at
ch.qos.logback.core.joran.spi.Interpreter.getApplicableActionList(Interpreter.java:256)
        at
ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:144)
        at
ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129)
        at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
        at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
        at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
        at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
        at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
        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:85)
        at 
org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
        at org.adoptopenjdk.jitwatch.ui.JITWatchUI.<clinit>(JITWatchUI.java:86)
        at org.adoptopenjdk.jitwatch.launch.LaunchUI.main(LaunchUI.java:18)
        at sun.reflect.NativeMethodAccessorImpl.invoke0([email protected]/Native 
Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke([email protected]/NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke([email protected]/DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke([email protected]/Method.java:530)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
        at java.lang.Thread.run([email protected]/Thread.java:746)

This is thrown on the first call to LoggerFactory.getLogger() when using
SLF4J+logback binding.

The line in logback that calls Class.getPackage() is:
https://github.com/qos-ch/logback/blob/master/logback-core/src/main/java/ch/qos/logback/core/joran/util/StringToObjectConverter.java#L34

Did a bit of debug-by-tweet with Fabian Lange and Maxim Ivanov who
suggested: @chriswhocodes for me too. i think issue related to extraction
package info from "internal packages".

Maybe already fixed in next beta but thought it's worth a report.

Kind regards,

Chris

Reply via email to