Matthias Schmidt created LOGBACK-1434:
-----------------------------------------
Summary: Logback fails to log when collecting estimated Memory Size
Key: LOGBACK-1434
URL: https://jira.qos.ch/browse/LOGBACK-1434
Project: logback
Issue Type: Bug
Components: logback-classic
Affects Versions: 1.0.7
Reporter: Matthias Schmidt
Assignee: Logback dev list
Priority: Minor
Hey together,
we are running java melody 1.73.1 on a tomcat server. it seems like the logging
framework of our java melody instance crashes at some time, so the application
throws an exception everytime it tries to log something.
according to the stacktrace, java melody is collecting some information from
the java information list. during this process, there is some exception
happening.
because of the crashed logback framework, we cannot see what kind of exception
this is.
see stacktrace:
java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy
at ch.qos.logback.classic.spi.LoggingEvent.(LoggingEvent.java:119)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:420)
at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:384)
at ch.qos.logback.classic.Logger.warn(Logger.java:693)
at net.bull.javamelody.LogbackLogger.warn(LogbackLogger.java:58)
at net.bull.javamelody.LOG.warn(LOG.java:102)
at net.bull.javamelody.Collector.collectWithoutErrors(Collector.java:308)
at
net.bull.javamelody.Collector.collectLocalContextWithoutErrors(Collector.java:294)
at net.bull.javamelody.FilterContext$CollectTimerTask.run(FilterContext.java:56)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
obviously, the logback library is accessible, because a part of the logback
code is executed successfully. the process is crashing when the logback library
tries to access the ThrowableProxy. according to some research, this may happen
when the logback process is shut down at some time, but the application is
still running or restarted at some point.
is there any idea or experience how or when this issue could occur?
thanks
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev