Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.xnio.channels.Channels ?? ?at io.undertow.servlet.spec.ServletOutputStreamImpl.flushInternal(ServletOutputStreamImpl.java:495) ?? ?at io.undertow.servlet.spec.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:477) ?? ?at com.fasterxml.jackson.core.json.UTF8JsonGenerator.flush(UTF8JsonGenerator.java:1178) ?? ?at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:1008) ?? ?at org.springblade.core.tool.jackson.AbstractReadWriteJackson2HttpMessageConverter.writeInternal(AbstractReadWriteJackson2HttpMessageConverter.java:116) ?? ?at org.springblade.core.tool.jackson.MappingApiJackson2HttpMessageConverter.writeInternal(MappingApiJackson2HttpMessageConverter.java:73) ?? ?at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:104) ?? ?at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:277) ?? ?at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:181) ?? ?at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:82) ?? ?at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:123) ?? ?at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) ?? ?at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) ?? ?at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ?? ?at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ?? ?... 60 more ', 'org.springframework.web.util.NestedServletException', 'Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.xnio.channels.Channels', 'DispatcherServlet.java' , 1055, '000000', 'blade-api', '192.168.174.36:80', 'SIPSD-MP24JEVW' , 'dev', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36', '/blade-system/dict/dictionary', 'GET' , 'org.springframework.web.servlet.DispatcherServlet', 'doDispatch', 'code=flow', 'admin', TIMESTAMP '2022-05-09 17:27:12.358') Execute Time: 12.970ms ============== ?Sql ?End ? ==============
2022-05-09 17:27:12.397 ERROR 11592 --- [ ?XNIO-1 task-2] io.undertow.request ? ? ? ? ? ? ? ? ? ? ?: UT005023: Exception handling request to /*****
JVM类加载器的问题
解决办法:
更换自己项目对应的jdk即可
|