[logback-user] JAnsi error message even if not using in configuration file

gokturk mavus gokturkmavus at gmail.com
Mon Aug 18 14:59:06 CEST 2014


To get rid of below message, what should I do?

What I have tried is that 1.6, 1.8, 1.11 version of JAnsi have been load to
class path. But, same messages is shown

Environment: Windows 7, Eclipse

My configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name ="Console"
class="ch.qos.logback.core.ConsoleAppender">
 <encoder>
<charset> UTF-8 </charset>
<pattern>%-5level [%thread] %class{0}.%method at line %line --
%message%n%ex</pattern>
</encoder>
</appender>

<root level="DEBUG">
<appender-ref ref="Console" />
</root>
</configuration>


UGLY collection of things, each time gives those things

15:47:49,379 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Could NOT find resource [logback.groovy]
15:47:49,379 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Found resource [logback-test.xml] at
[file:/C:/Users/dell/Documents/GitHub/CorrelationAnalysis/DataScienceApprenticeship/execBin/logback-test.xml]
15:47:49,463 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute
not set
15:47:49,473 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
15:47:49,483 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
Naming appender as [ConsoleAppender]
15:47:49,508 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default
type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder]
property
15:47:49,557 |-INFO in ch.qos.logback.core.ConsoleAppender[ConsoleAppender]
- Enabling JANSI WindowsAnsiOutputStream for the console.
15:47:49,558 |-WARN in ch.qos.logback.core.ConsoleAppender[ConsoleAppender]
- Failed to create WindowsAnsiOutputStream. Falling back on the default
stream. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to
instantiate type org.fusesource.jansi.WindowsAnsiOutputStream
at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to
instantiate type org.fusesource.jansi.WindowsAnsiOutputStream
at at
ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73)
at at
ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:42)
at at
ch.qos.logback.core.ConsoleAppender.getTargetStreamForWindows(ConsoleAppender.java:94)
at at ch.qos.logback.core.ConsoleAppender.start(ConsoleAppender.java:85)
at at
ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
at at
ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
at at
ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
at at
ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
at at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
at at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
at at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
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:85)
at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
at at dot.dataCom<clinit>(dataCom.java:49)
at at dot.dataCom(dataComTest.java:30)
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
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at at org.junit.runners.Suite.runChild(Suite.java:128)
at at org.junit.runners.Suite.runChild(Suite.java:24)
at at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.ClassNotFoundException:
org.fusesource.jansi.WindowsAnsiOutputStream
at at java.net.URLClassLoader$1.run(Unknown Source)
at at java.net.URLClassLoader$1.run(Unknown Source)
at at java.security.AccessController.doPrivileged(Native Method)
at at java.net.URLClassLoader.findClass(Unknown Source)
at at java.lang.ClassLoader.loadClass(Unknown Source)
at at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at at java.lang.ClassLoader.loadClass(Unknown Source)
at at
ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60)
at ... 46 common frames omitted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20140818/dfc3b53f/attachment.html>


More information about the Logback-user mailing list