[logback-dev] [JIRA] (LOGBACK-1282) ConsoleAppender shows logback error in Java console on startup
QOS.CH (JIRA)
noreply-jira at qos.ch
Fri Mar 17 15:30:00 CET 2017
Clas Forsberg created LOGBACK-1282:
--------------------------------------
Summary: ConsoleAppender shows logback error in Java console on startup
Key: LOGBACK-1282
URL: https://jira.qos.ch/browse/LOGBACK-1282
Project: logback
Issue Type: Bug
Components: logback-core
Affects Versions: 1.2.1
Environment: windows 10
Using JRE version 1.8.0_121-b13 Java HotSpot(TM) 64-Bit Server VM
Reporter: Clas Forsberg
Assignee: Logback dev list
When starting our application a stacktrace is shown in java console windows,
Java Web Start 11.121.2.13 amd64
Using JRE version 1.8.0_121-b13 Java HotSpot(TM) 64-Bit Server VM
User home directory = C:\Users\clfo0002
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
CacheEntry[file://localhost/C:/temp/lib/expert.client.app-1.0-SNAPSHOT-application.jar]: updateAvailable=false,lastModified=Fri Mar 17 14:36:41 CET 2017,length=69553117
14:39:40,319 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
14:39:40,319 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
14:39:40,319 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file://localhost/C:/temp/lib/expert.client.app-1.0-SNAPSHOT-application.jar!/logback.xml]
14:39:40,331 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList at 37f255ec - URL [jar:file://localhost/C:/temp/lib/expert.client.app-1.0-SNAPSHOT-application.jar!/logback.xml] is not of type file
14:39:40,442 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
14:39:40,443 |-INFO in ch.qos.logback.core.joran.action.StatusListenerAction - Added status listener of type [ch.qos.logback.core.status.OnConsoleStatusListener]
14:39:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
14:39:40,449 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
14:39:40,456 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:39:40,483 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 11:16 - RuntimeException in Action for tag [appender] java.lang.ArrayIndexOutOfBoundsException: -1
at java.lang.ArrayIndexOutOfBoundsException: -1
at at com.sun.deploy.trace.TraceStream.write(Unknown Source)
at at java.io.PrintStream.write(Unknown Source)
at at java.io.FilterOutputStream.write(Unknown Source)
at at ch.qos.logback.core.joran.spi.ConsoleTarget$1.write(ConsoleTarget.java:37)
at at ch.qos.logback.core.OutputStreamAppender.writeBytes(OutputStreamAppender.java:199)
at at ch.qos.logback.core.OutputStreamAppender.encoderInit(OutputStreamAppender.java:181)
at at ch.qos.logback.core.OutputStreamAppender.setOutputStream(OutputStreamAppender.java:171)
at at ch.qos.logback.core.ConsoleAppender.start(ConsoleAppender.java:81)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
at at se.uhr.nya.expert.client.framework.swing.Settings.<clinit>(Settings.java:50)
at at se.uhr.nya.expert.client.app.ExpertClient.<init>(ExpertClient.java:129)
at at se.uhr.nya.expert.client.app.ExpertClient.main(ExpertClient.java:2843)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at at java.lang.reflect.Method.invoke(Unknown Source)
at at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at at com.sun.javaws.Launcher.run(Unknown Source)
at at java.lang.Thread.run(Unknown Source)
14:39:40,581 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
14:39:40,584 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [DEBUG_FILE]
14:39:40,586 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:39:40,587 |-INFO in ch.qos.logback.core.FileAppender[DEBUG_FILE] - File property is set to [C:\temp\nya\client_debug.log]
14:39:40,590 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [se.uhr.nya] to INFO
14:39:40,590 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [DEBUG_FILE] to Logger[se.uhr.nya]
14:39:40,591 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [se.vhs.nya] to INFO
14:39:40,591 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [DEBUG_FILE] to Logger[se.vhs.nya]
14:39:40,591 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
14:39:40,591 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
14:39:40,591 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
14:39:40,592 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator at 3030fdc4 - Registering current configuration as safe fallback point
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
More information about the logback-dev
mailing list