ch.qos.logback.core.util.DynamicClassLoadingException

  • 错误提示

ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.fusesource.jansi.WindowsAnsiOutputStream

09:33:12,668 |-WARN in ch.qos.logback.core.ConsoleAppender[stdout] - 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:69)
	at 	at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:40)
	at 	at ch.qos.logback.core.ConsoleAppender.getTargetStreamForWindows(ConsoleAppender.java:88)
	at 	at ch.qos.logback.core.ConsoleAppender.start(ConsoleAppender.java:79)
	at 	at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
	at 	at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
	at 	at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
	at 	at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
	at 	at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
	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:84)
	at 	at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
	at 	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
	at 	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
	at 	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
	at 	at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addStatus(StatusViaSLF4JLoggerFactory.java:32)
	at 	at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addInfo(StatusViaSLF4JLoggerFactory.java:20)
	at 	at ch.qos.logback.classic.servlet.LogbackServletContainerInitializer.onStartup(LogbackServletContainerInitializer.java:32)
	at 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5098)
	at 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
	at 	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1141)
	at 	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1876)
	at 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
	at 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
	at 	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1053)
	at 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:428)
	at 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
	at 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
	at 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at 	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
	at 	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
	at 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:972)
	at 	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
	at 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432)
	at 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422)
	at 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
	at 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
	at 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)
	at 	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)
	at 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at 	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
	at 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at 	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:801)
	at 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at 	at org.apache.catalina.startup.Catalina.start(Catalina.java:695)
	at 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at 	at java.lang.reflect.Method.invoke(Method.java:498)
	at 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
	at 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.WindowsAnsiOutputStream
	at 	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1328)
	at 	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
	at 	at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:56)
	at 	... 62 common frames omitted
09:33:12,668 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to DEBUG

原本好好地,突然运行时就报错,

解决项目jdk版本问题

ch.qos.logback.core.util.DynamicClassLoadingException

链接解答: https://github.com/micronaut-projects/micronaut-core/issues/1521 

上一篇:脱坑笔记


下一篇:为什么ISR4K、ASR1K等设备的QoS ACL没有显示计数?