[logback-dev] [JIRA] Resolved: (LBCLASSIC-155) ThrowableProxy passed into EventEvaluator
Ceki Gulcu (JIRA)
noreply-jira at qos.ch
Tue Nov 10 18:51:44 CET 2009
[ http://jira.qos.ch/browse/LBCLASSIC-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ceki Gulcu resolved LBCLASSIC-155.
----------------------------------
Fix Version/s: 0.9.18
Resolution: Fixed
Hello Hontvári,
Thank you for reporting this bug. Fixed in a recent commit [1].
[1] http://github.com/ceki/logback/commit/d6158815139bdc475619c07ce2a1e21185942343
> ThrowableProxy passed into EventEvaluator
> -----------------------------------------
>
> Key: LBCLASSIC-155
> URL: http://jira.qos.ch/browse/LBCLASSIC-155
> Project: logback-classic
> Issue Type: Bug
> Components: Other
> Affects Versions: 0.917
> Reporter: Hontvári József
> Assignee: Ceki Gulcu
> Fix For: 0.9.18
>
>
> In an event evaluator which is called in the option part of an "ex" formatting specifier I cannot use a "throwable instanceof example" expression, because the evaluator receives a ThrowableProxy and not a Throwable.
> Here is a stack trace, dumped from the evaluator expression. It does include a ThrowableProxyConverter.convert call:
> java.lang.Exception: Stack trace
> at java.lang.Thread.dumpStack(Thread.java:1206)
> at mireka.E.f(E.java:21)
> at SC.eval0(SC.java:3)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.janino.ScriptEvaluator.evaluate(ScriptEvaluator.java)
> at org.codehaus.janino.ScriptEvaluator.evaluate(ScriptEvaluator.java)
> at ch.qos.logback.core.boolex.JaninoEventEvaluatorBase.evaluat (JaninoEventEvaluatorBase.java:53)
> at ch.qos.logback.classic.pattern.ThrowableProxyConverter.convert(ThrowableProxyConverter.java:109)
> at ch.qos.logback.classic.pattern.ThrowableProxyConverter.convert(ThrowableProxyConverter.java:31)
> at ch.qos.logback.core.pattern.FormattingConverter.write(FormattingConverter.java:32)
> at ch.qos.logback.core.pattern.PatternLayoutBase.writeLoopOnConverters(PatternLayoutBase.java:110)
> at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:132)
> at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:51)
> at ch.qos.logback.core.WriterAppender.subAppend(WriterAppender.java:267)
> at ch.qos.logback.core.WriterAppender.append(WriterAppender.java:117)
> at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:89)
> at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:60)
> at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:271)
> at ch.qos.logback.classic.Logger.callAppenders(Logger.java:258)
> at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:440)
> at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:394)
> at ch.qos.logback.classic.Logger.debug(Logger.java:517)
> at org.subethamail.smtp.server.Session.run(Session.java:119)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list