[logback-dev] [JIRA] Created: (LBCLASSIC-155) ThrowableProxy passed into EventEvaluator

Hontvári József (JIRA) noreply-jira at qos.ch
Mon Sep 28 11:42:44 CEST 2009


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: Logback dev list


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