<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello all, <br/></div><div><br/></div><div>My Application uses Groovy to dynamically create classes at runtime.<br/></div><div><br/></div><div>During execution an exception is thrown but somehow the GroovyClassLoader creates an AssertionError when logback tries to calculate the PackagingData information afterwards.<br/></div><div><br/></div><div>I was able do deactivae the PackagingData printout using the %%ex option in the Pattern definition. But this seems only to hide the printout, it still tries to calculate.<br/></div><div><br/></div><div><br/></div><div><br/></div><div>During execution anCaused by: java.lang.AssertionError: true<br/> at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:719)<br/> at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:759)<br/> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)<br/> at ch.qos.logback.classic.spi.PackagingDataCalculator.loadClass(PackagingDataCalculator.java:198)<br/> at ch.qos.logback.classic.spi.PackagingDataCalculator.bestEffortLoadClass(PackagingDataCalculator.java:220)<br/> at ch.qos.logback.classic.spi.PackagingDataCalculator.computeBySTEP(PackagingDataCalculator.java:132)<br/> at ch.qos.logback.classic.spi.PackagingDataCalculator.populateFrames(PackagingDataCalculator.java:95)<br/> at ch.qos.logback.classic.spi.PackagingDataCalculator.calculate(PackagingDataCalculator.java:58)<br/> at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:100)<br/> at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126)<br/> at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:471)<br/> at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:427)<br/> at ch.qos.logback.classic.Logger.log(Logger.java:846)<br/></div><div><br/></div><div><br/></div><div>Having a look at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126)<br/></div><div><br/></div><div><span style="font-family: monospace;">122 if (throwable != null) {<br/>123 this.throwableProxy = new ThrowableProxy(throwable);<br/>124 LoggerContext lc = logger.getLoggerContext();<br/>125 if (lc.isPackagingDataEnabled()) {<br/>126 this.throwableProxy.calculatePackagingData();<br/>127 }<br/>128 }</span><br/></div><div><br/></div><div><br/></div><div><br/></div><div>Is the any possibility in the configuration file to set <span style="font-family: monospace;">lc.isPackagingDataEnabled()</span> to false?<br/></div><div><br/></div><div>Kind regards<br/></div><div>Christian<br/></div><div><br/></div></div> <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td style="font-family:verdana; font-size:12px; line-height:17px;border-top:1px solid #000000">SMS schreiben mit WEB.DE FreeMail - einfach, schnell und <br>kostenguenstig. Jetzt gleich testen! <a href="http://f.web.de/?mc=021192"><b>http://f.web.de/?mc=021192</b></a></td></tr></table>
</body></html>