springboot运行一段时间诡异报错 [问题点数:100分]

Bbs1
本版专家分:26
结帖率 97.37%
Bbs3
本版专家分:564
Bbs1
本版专家分:26
Bbs2
本版专家分:465
Bbs2
本版专家分:428
Bbs1
本版专家分:26
Bbs1
本版专家分:26
SpringBoot 2.0 系列007 --WEB容器详解

SpringBoot 2.0 系列007 --WEB容器详解我们知道java常用的两大容器tomcat和jetty,其中SB默认内嵌了tomcat容器。那么SB都支持什么属性呢?参阅ServerProperties.java基本是通用的服务器配置,以及error、Compression、Http2、Servlet、Tomcat、Jetty、Undertow等配置。可用配置1. 通用服务配置port...

springboot整合redisCacheManager 的时候java.io.EOFException null的解决办法)

<em>springboot</em>整合redisCacheManager 的时候java.io.EOFException null的解决办法) 可能是配置文件properties中的mysql 数据库的驱动名字错误,或者关于数据库的其他配置错误 在此处我的是 url配置错误 改成 jdbc:mysql://localhost:3306/test既可以解决 次错误也有可能是其他配置问题,如在使用自定义redis...

java.io.EOFException这是个什么异常应该怎么解决?

第一个类 public functionserver(int port) { this.port =port; try{ ss = new ServerSocket(port); System.out

spring boot项目启动报DataSource错误

初建一个简单的spring boot 项目,启动后会<em>报错</em>。 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with n...

Springboot启动报错Application.ic java.io.EOFException的原因和解决方案

原因 出现该错误的原因,主要是<em>springboot</em>启动读取配置文件出错导致无法成功加载配置时报出的错误,最终导致启动失败 现象 1,报出异常,异常信息如下 [2019.07.29 13:06:04] (Coverage): Failed to load coverage data from file: C:\Users\**\.IntelliJIdea2018.1\system\cove...

Spring-Boot:further occurrences of Parameter errors will be logged at DEBUG level.

Spring-Boot:further occurrences of Parameter errors will be logged at DEBUG level. 百度一大堆都说 是检查pom.xml 中是否有重复的包,检查之后无果,怀疑是找不到controller的包。 在Application 的启动类中添加了指定扫描 controller包地址的注解,问题解决。 @SpringBo...

springboot 遇到的一个bug,对项目好像没啥影响,就是会出现个报错

2019-07-19 11:43:10.293 INFO org.apache.coyote.http11.Http11Processor - Error parsing HTTP request h

springboot Invalid character found in method name. HTTP method names must be tokens

为啥把<em>springboot</em>内置的tomcat端口改了就没有这个问题了, 求解求解, 有没有大佬知道这是什么原因

SpringBoot项目报错Invalid character found in method name. HTTP method names must be tokens解决办法

几天没开电脑,启动项目<em>报错</em> <em>报错</em>信息: Invalid character found in method name. HTTP method names must be tokens 中文释义:“在方法名称中发现无效字符。HTTP方法名称必须是令牌” 完整错误信息如下: java.lang.IllegalArgumentException: Invalid character fou...

springboot自定义配置选项查看技巧

在使用<em>springboot</em>的时候,由于它的自动配置的存在,一开始很容易上手进行应用开发,但是等需要进行深度自定义配置的时候,很多人蒙圈,哪些内容可以自定义配置,配置参数是什么等等问题接踵而来,刚好我有个任务要进行<em>springboot</em> tomcat有那些配置参数可以配置的说明,所以就借这个机会告诉大家怎么查看某一个模块的配置参数有哪些。         首先,<em>springboot</em>的大部分自动

求助tomcat9报错Invalid character found in the request target

具体信息 信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors w

Springboot多数据源自动断开connection连接问题

单数据源配置,可以采用<em>springboot</em>的自动加载mybatis, application.properties中配置如下:不需要特殊配置即可 @MapperScan("com.nox.dsp.dao") 采用这种自动加载dao层的形式 #spring.datasource.type = org.apache.commons.dbcp2.BasicDataSource #初始

spring boot多个端口启动项目访问 报错:"Invalid character found in method name. HTTP method names must be tokens"

多端口配置 <em>springboot</em>2 写法 @Bean public TomcatServletWebServerFactory servletContainer() { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory() { @Override ...

关于Invalid character found in method name. HTTP method names must be tokens的问题

最近,发现线上的用户中心<em>运行</em><em>一段时间</em>后,就会<em>报错</em>,但是不影响程序的正常使用。测试环境中,从未发生这个问题。于是感觉很奇怪,便开始排查该问题。 关于这个问题网上的资料很少,估计是很少人遇到这种情况,我遇到的这个情况应该是个神奇的存在。<em>报错</em>代码如下:Jun 01, 2017 10:21:52 AM org.apache.coyote.http11.AbstractHttp11Processor proc

idea解决C:\Users\Administrator\.IntelliJIdea2018.1\system\tomcat\Unnamed_crude-oil-webapp_4&quot;

(注:这个问题其他没什么影响,只是一个影响C盘空间而已) 在idea自动生成在C盘的,会存放很多数据,我们把他改一下,放在D盘 D:/IDEA/IntelliJ IDEA 2018.1.2/work/config 这个路径是自己随意创建的,只是让数据不在方C盘中 (注:配置完成,重新启动,会回到idea第一次启动时,原来的数据会消失) 找到idea的安装路径,找到bin下的idea.pro...

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must b

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:42

求助关于java.io.EOFException: null报错

10:04:17 DEBUG o.a.coyote.http11.Http11NioProtocol - Found processor for socket ] 10:04:17 DEBUG o.a

生产问题:java.io.EOFException: SSL peer shut down incorrectly

场景: 原本服务器中<em>运行</em>的好好的一个jar(作用是访问第三方的接口,同步信息),突然<em>报错</em> java.io.EOFException: SSL peer shut down incorrectly com.alibaba.fastjson.JSONException: syntax error, expect {, actual EOF, pos 0 排查: 手动curl了对方的接口,发现...

解决SpringBoot2.1.0 报错NoClassDefFoundError: XXX

不说废话: 1、检查idea maven setting配置及资源仓库配置,检查环境变量配置 点击file-settings-搜索maven 观察你的mavenhome,settingfile,repository这三个地方是否是你期望的配置。 检查环境变量配置(虽说不知道会不会影响,但是我还是比较喜欢整齐划一的,不说别的检查一下) 一看保持一致就好。如果不一致,请配置环境变量(...

解决异常: SSL peer shut down incorrectly

解决异常: SSL peer shut down incorrectly异常展示定位问题问题解决参考文章: 今天在处理一个和https交互的工作,主要是下载aws的s3上面存放的链接,但是由于,s3上面的图片链接是https的,所以,请求下载时偶尔<em>报错</em>:SSL peer shut down incorrectly导致下载失败。网上百度的大多数都和我想要有些出入,我在此记录自己的解决方式和过程。以...

spring boot 上传文件 java.io.EOFException错误

今天部署项目的时候遇到一个<em>诡异</em>的问题,在本地开发的时候,上传大一点的文件什么的没问题,但是一发布上去就报java.io.EOFException错误,网上搜索了半天,发现这个错误的解释是输入过程中意外地到达文件尾或流尾的信号,导致异常;然而刚开始并没有看懂这句话,后来再查,发现可能是文件没有传输完毕就关闭了页面,但是我的页面也是没有关闭的;后来回去看了自己写的代码,发现问题是多方面导致的:1:服务...

解决o.s.web.servlet.PageNotFound 异常

在启动类添加 @EnableWebMvc 注解 <em>springboot</em>版本为 2.1.5.RELEASE ,项目中无自定义拦截器

执行语句的时候出现 invalid character的错误,如何解决?

连接数据库的时候在执行rs=stmt.executeQuery("select * from yhb;");语句的时候总提示 javax.servlet.ServletException: ORA-0

springboot启动eureka注册中心报错Invalid character found in method name. HTTP method names must be tokens

2020-02-11 13:05:12.301 INFO 12656 --- [io-9100-exec-10] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be...

Invalid character found in method name. HTTP method names must be tokens 小白错误解决

Invalid character found in method name. HTTP method names must be tokens 错误解决 今天发布的项目突然访问不了查看错误日志发现这个问题,百度了下都说在 Tomcat的header缓冲区大小不够,只需要在server.xml中增加maxHttpHeaderSize字段即可: &lt;Connector URIEncoding=“...

springboot 启动一段时间之后自动挂掉的解决

项目集成了前后端代码,发现<em>运行</em><em>一段时间</em>之后,自动退出。从日志看不出任何的问题,日志如下:   解决办法: 原来使用: java -jar -Xmx1024M *.jar &amp;gt;./app.log &amp;amp; 改为使用: nohup java -jar -Xmx1024M *.jar &amp;gt;./app.log &amp;amp; 问题解决。 nohup = no hang up noh...

Spring Boot启动后不报错,但是接口调用失败

刚开始学习Spring Boot,在MyEclipse中建立了一个Spring Boot项目,启动的时候一切正常,但是在执行controller中的方法的时候失败:                                                                图一Controller类:@RestController public class HelloContro...

解决一些Springboot启动报错问题

项目启动<em>报错</em>比调bug更加难受 概要:近日在学习Springcloud微服务。配置服务注册中心,一切妥妥当当,但还是报了一个让我崩溃的问题:org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 翻译一下这句话:启动内置tomcat失败。 具体<em>报错</em>信息如下: org.spring...

CLH同步队列是怎么实现非公平和公平的

环境:SpringBoot 2.1.5 JDK1.8 <em>报错</em>提示: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-01-02 19:27:52.299 ERROR 17856 --- [ ...

spring-boot启动不了,报错 java.lang.NoClassDefFoundError: javax/servlet/ServletContext

找了半天,pom配置文件中更改一下配置即可, dependency> groupId>org.springframework.bootgroupId> artifactId>spring-boot-starter-tomcatartifactId> scope>providedscope> dependency> 把scopt注释掉即可;之前尝试将provided改为ru

springboot 偶发性的NoClassDefFoundError错误

几天前线上环境<em>springboot</em>出现了NoClassDefFoundError错误,重启之后就没有问题了,请问这种问题的出现,是打包问题吗? ``` 2019-04-16 17:06:04,641 ERROR [https-jsse-nio-10089-exec-2] c.n.m.a.GlobalExceptionHandler [GlobalExceptionHandler.java : 58] 错误信息: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:982) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.nes.mtpf.filter.RecordIpFilter.doFilter(RecordIpFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.nes.mtpf.filter.HttpRequestMethodFilter.doFilter(HttpRequestMethodFilter.java:29) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.nes.mtpf.filter.CorsResponseFilter.doFilter(CorsResponseFilter.java:27) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) at com.sun.proxy.$Proxy83.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy109.insertSelective(Unknown Source) at com.nes.mtpf.service.impl.ArticleInfoServiceImpl.addNewInfo(ArticleInfoServiceImpl.java:58) at com.nes.mtpf.controller.ArticleInfoController.addNewInfo(ArticleInfoController.java:48) at sun.reflect.GeneratedMethodAccessor817.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) ... 58 common frames omitted 2019-04-16 17:06:13,863 ERROR [https-jsse-nio-10089-exec-7] c.n.m.a.GlobalExceptionHandler [GlobalExceptionHandler.java : 58] 错误信息: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:982) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.nes.mtpf.filter.RecordIpFilter.doFilter(RecordIpFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.nes.mtpf.filter.HttpRequestMethodFilter.doFilter(HttpRequestMethodFilter.java:29) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.nes.mtpf.filter.CorsResponseFilter.doFilter(CorsResponseFilter.java:27) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:108) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) at com.sun.proxy.$Proxy83.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy109.insertSelective(Unknown Source) at com.nes.mtpf.service.impl.ArticleInfoServiceImpl.addNewInfo(ArticleInfoServiceImpl.java:58) at com.nes.mtpf.controller.ArticleInfoController.addNewInfo(ArticleInfoController.java:48) at sun.reflect.GeneratedMethodAccessor817.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) ... 58 common frames omitted 2019-04-16 17:06:15,047 ERROR [http-nio-10088-exec-5] o.a.coyote.http11.Http11Processor [DirectJDKLog.java : 182] Error processing request java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/parser/Cookie at org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:90) at org.apache.catalina.connector.Request.parseCookies(Request.java:3104) at org.apache.catalina.connector.Request.getServerCookies(Request.java:2174) at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:1007) at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:714) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.util.http.parser.Cookie at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 15 common frames omitted 2019-04-16 17:06:45,028 ERROR [http-nio-10088-exec-6] o.a.coyote.http11.Http11Processor [DirectJDKLog.java : 182] Error processing request java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/parser/Cookie at org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:90) at org.apache.catalina.connector.Request.parseCookies(Request.java:3104) at org.apache.catalina.connector.Request.getServerCookies(Request.java:2174) at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:1007) at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:714) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 2019-04-16 17:06:51,852 ERROR [http-nio-10088-exec-9] o.a.coyote.http11.Http11Processor [DirectJDKLog.java : 182] Error processing request java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/parser/Cookie at org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:90) at org.apache.catalina.connector.Request.parseCookies(Request.java:3104) at org.apache.catalina.connector.Request.getServerCookies(Request.java:2174) at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:1007) at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:714) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 2019-04-16 17:07:00,001 ERROR [pool-2-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler [TaskUtils.java : 95] Unexpected error occurred in scheduled task. java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) at com.sun.proxy.$Proxy83.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230) at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy92.getOffTimingTask(Unknown Source) at com.nes.mtpf.service.impl.EquipmentTimeWorkInfoServiceImpl.handleTimingTask(EquipmentTimeWorkInfoServiceImpl.java:126) at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy100.handleTimingTask(Unknown Source) at com.nes.mtpf.AppStart.handleTimingTask(AppStart.java:148) at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2019-04-16 17:08:00,001 ERROR [pool-2-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler [TaskUtils.java : 95] Unexpected error occurred in scheduled task. java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) at com.sun.proxy.$Proxy83.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230) at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy92.getOffTimingTask(Unknown Source) at com.nes.mtpf.service.impl.EquipmentTimeWorkInfoServiceImpl.handleTimingTask(EquipmentTimeWorkInfoServiceImpl.java:126) at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy100.handleTimingTask(Unknown Source) at com.nes.mtpf.AppStart.handleTimingTask(AppStart.java:148) at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2019-04-16 17:08:36,579 ERROR [http-nio-10088-exec-4] o.a.coyote.http11.Http11Processor [DirectJDKLog.java : 182] Error processing request java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/parser/Cookie at org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:90) at org.apache.catalina.connector.Request.parseCookies(Request.java:3104) at org.apache.catalina.connector.Request.getServerCookies(Request.java:2174) at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:1007) at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:714) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 2019-04-16 17:08:44,132 ERROR [http-nio-10088-exec-10] o.a.coyote.http11.Http11Processor [DirectJDKLog.java : 182] Error processing request java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/parser/Cookie at org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:90) at org.apache.catalina.connector.Request.parseCookies(Request.java:3104) at org.apache.catalina.connector.Request.getServerCookies(Request.java:2174) at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:1007) at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:714) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) ```

spring boot 启动 NoClassDefFoundError: org/springframework/core/ErrorCoded 报错

日志内容如下: java.lang.NoClassDefFoundError: org/springframework/core/ErrorCoded at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ...

Springboot项目启动报错java.lang.IllegalStateException和java.lang.NoClassDefFoundError

在IDEA开发工具中启动一个<em>springboot</em>项目时<em>报错</em> Caused by: java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServletInitializer at...

exe4j 打包springboot项目启动失败报错:java.lang.NoClassDefFoundError: BOOT-INF/classes/...

解决方式: 使用Main-Class: org.springframework.boot.loader.JarLauncher类启动。

SpringBoot报错:出错原因不明白,怎么解决?

1.implement代码 public Result> search计划编号(String 计划编号) { Result> res = new Result<>(); try { 计划编号 = "%" + 计划编号 + "%"; List data = 盘点计划表Dao.search计划编号(计划编号); res.setFlag(true); res.setCount((long) data.size()); res.setData(data); } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); res.setFlag(false); res.setMessage(e.getMessage()); } return res; } 2.xml代码 select from IMOS_PD_CheckPlan where CheckPlan_Code like #{计划编号} and CheckPlan_Result = '未执行' 3.<em>报错</em> 16:16:12 [http-nio-8080-exec-3] DEBUG o.s.web.servlet.DispatcherServlet - DispatcherServlet with name 'dispatcherServlet' processing POST request for [/%E7%9B%98%E7%82%B9%E8%AE%A1%E5%88%92%E8%A1%A8/%E6%A0%B9%E6%8D%AE%E8%AE%A1%E5%88%92%E7%BC%96%E5%8F%B7%E8%8E%B7%E5%8F%96%E7%9B%98%E7%82%B9%E8%AE%A1%E5%88%92] 16:16:12 [http-nio-8080-exec-3] DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Looking up handler method for path /盘点计划表/根据计划编号获取盘点计划 16:16:12 [http-nio-8080-exec-3] DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Returning handler method [public com.bean.Result> com.controller.盘点计划表Controller.根据计划编号获取盘点计划(javax.servlet.http.HttpServletRequest,java.lang.String)] 16:16:12 [http-nio-8080-exec-3] DEBUG o.s.w.s.m.m.a.RequestResponseBodyMethodProcessor - Read [class java.lang.String] as "application/json;charset=UTF-8" with [org.springframework.http.converter.StringHttpMessageConverter@2092b072] 16:16:27 [http-nio-8080-exec-3] DEBUG com.dao.盘点计划表Dao.search计划编号 - ==> Preparing: select CheckPlan_Code ,CheckPlan_Name ,CheckPlan_Way ,CheckPlan_Project ,CheckPlan_OperatorCode ,CheckPlan_OperatorName ,CheckPlan_StartDate ,CheckPlan_EndDate ,CheckPlan_Result from IMOS_PD_CheckPlan where CheckPlan_Code like ? and CheckPlan_Result = '未执行' 16:16:27 [http-nio-8080-exec-3] DEBUG com.dao.盘点计划表Dao.search计划编号 - ==> Parameters: %{"计划编号":""}%(String) 16:16:28 [http-nio-8080-exec-3] DEBUG com.dao.盘点计划表Dao.search计划编号 - : assuming HandlerAdapter completed request handling 16:16:30 [http-nio-8080-exec-3] DEBUG o.s.web.servlet.DispatcherServlet - Successfully completed request

spring boot项目日志功能报错

# 创建项目之后只写了这一个类<em>运行</em>,(而且莫名其妙早上还可以正常<em>运行</em>,下午却一直<em>报错</em>) ``` package com.zhou; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class LoggerTest { private final Logger logger = LoggerFactory.getLogger(LoggerTest.class); @Test public void test1(){ logger.debug("debug...."); logger.info("info..."); logger.error("error..."); } } ``` ## 下面是 <em>报错</em>信息 ``` java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:189) at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:131) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1072) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1082) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:857) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:121) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) ... 24 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1072) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1139) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1067) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ... 51 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ... 64 more Caused by: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:247) at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:184) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:43) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat.dataSource(DataSourceConfiguration.java:60) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat$$EnhancerBySpringCGLIB$$42f87a0e.CGLIB$dataSource$0() at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat$$EnhancerBySpringCGLIB$$42f87a0e$$FastClassBySpringCGLIB$$1043f20a.invoke() at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat$$EnhancerBySpringCGLIB$$42f87a0e.dataSource() at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ... 65 more ```

异常Exception in thread "http-nio-8888-exec-6" java.lang.IllegalStateException: It is illegal to call

Exception in thread “http-nio-8888-exec-6” java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode (i.e. isAsyncStarted() returns false) 原...

Springboot刚启动就报内存溢出?

1.问题描述: 本地系统是Ubuntu,jdk1.8,工具是eclipse,新创建的最简单的<em>springboot</em>项目,其中只导入了web、config的包。 只写了一个controller,启动就会<em>报错</em>。 Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode): "DestroyJavaVM" #39 prio=5 os_prio=0 tid=0x00007f0ae800f000 nid=0x697c waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "http-nio-8080-Acceptor-0" #37 daemon prio=5 os_prio=0 tid=0x00007f0ae8224800 nid=0x69ae runnable [0x00007f0ac26ed000] java.lang.Thread.State: RUNNABLE at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422) at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250) - locked (a java.lang.Object) at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:448) at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:70) at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:95) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-ClientPoller-1" #36 daemon prio=5 os_prio=0 tid=0x00007f0ae821f000 nid=0x69ad runnable [0x00007f0ac27ee000] java.lang.Thread.State: RUNNABLE at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method) at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269) at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93) at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86) - locked (a sun.nio.ch.Util$3) - locked (a java.util.Collections$UnmodifiableSet) - locked (a sun.nio.ch.EPollSelectorImpl) at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97) at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:743) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-ClientPoller-0" #35 daemon prio=5 os_prio=0 tid=0x00007f0ae821d000 nid=0x69ac runnable [0x00007f0ac28ef000] java.lang.Thread.State: RUNNABLE at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method) at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269) at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93) at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86) - locked (a sun.nio.ch.Util$3) - locked (a java.util.Collections$UnmodifiableSet) - locked (a sun.nio.ch.EPollSelectorImpl) at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97) at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:743) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-10" #34 daemon prio=5 os_prio=0 tid=0x00007f0ae82b5800 nid=0x69ab waiting on condition [0x00007f0ac29f0000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-9" #33 daemon prio=5 os_prio=0 tid=0x00007f0ae82b4000 nid=0x69aa waiting on condition [0x00007f0ac2af1000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-8" #32 daemon prio=5 os_prio=0 tid=0x00007f0ae82b2000 nid=0x69a9 waiting on condition [0x00007f0ac2bf2000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-7" #31 daemon prio=5 os_prio=0 tid=0x00007f0ae82b0000 nid=0x69a8 waiting on condition [0x00007f0ac2cf3000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-6" #30 daemon prio=5 os_prio=0 tid=0x00007f0ae82ae000 nid=0x69a7 waiting on condition [0x00007f0ac2df4000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-5" #29 daemon prio=5 os_prio=0 tid=0x00007f0ae8256800 nid=0x69a6 waiting on condition [0x00007f0ac2ef5000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-4" #28 daemon prio=5 os_prio=0 tid=0x00007f0ae8254800 nid=0x69a5 waiting on condition [0x00007f0ac2ff6000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-3" #27 daemon prio=5 os_prio=0 tid=0x00007f0ae8252800 nid=0x69a4 waiting on condition [0x00007f0ac30f7000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-2" #26 daemon prio=5 os_prio=0 tid=0x00007f0ae8251000 nid=0x69a3 waiting on condition [0x00007f0ac31f8000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "http-nio-8080-exec-1" #25 daemon prio=5 os_prio=0 tid=0x00007f0ae824f800 nid=0x69a2 waiting on condition [0x00007f0ac32f9000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:107) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "NioBlockingSelector.BlockPoller-1" #24 daemon prio=5 os_prio=0 tid=0x00007f0ae82e3800 nid=0x69a1 runnable [0x00007f0ac33fa000] java.lang.Thread.State: RUNNABLE at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method) at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269) at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93) at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86) - locked (a sun.nio.ch.Util$3) - locked (a java.util.Collections$UnmodifiableSet) - locked (a sun.nio.ch.EPollSelectorImpl) at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97) at org.apache.tomcat.util.net.NioBlockingSelector$BlockPoller.run(NioBlockingSelector.java:304) "spring.cloud.inetutils" #23 daemon prio=5 os_prio=0 tid=0x00007f0ae82fb800 nid=0x69a0 waiting on condition [0x00007f0ac34fb000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) "SimplePauseDetectorThread_0" #22 daemon prio=9 os_prio=0 tid=0x00007f0a84015000 nid=0x699f waiting on condition [0x00007f0ac37fc000] java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at java.lang.Thread.sleep(Thread.java:340) at java.util.concurrent.TimeUnit.sleep(TimeUnit.java:386) at org.LatencyUtils.TimeServices.sleepNanos(TimeServices.java:62) at org.LatencyUtils.SimplePauseDetector$SimplePauseDetectorThread.run(SimplePauseDetector.java:116) "Thread-4" #21 daemon prio=9 os_prio=0 tid=0x00007f0a84011800 nid=0x699e waiting on condition [0x00007f0ac38fd000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at org.LatencyUtils.PauseDetector$PauseDetectorThread.run(PauseDetector.java:85) "container-0" #20 prio=5 os_prio=0 tid=0x00007f0ae8c72800 nid=0x699d waiting on condition [0x00007f0ac39fe000] java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at org.apache.catalina.core.StandardServer.await(StandardServer.java:568) at org.springframework.boot.web.embedded.tomcat.TomcatWebServer$1.run(TomcatWebServer.java:181) "Catalina-utility-2" #19 prio=1 os_prio=0 tid=0x00007f0a68314800 nid=0x699c waiting on condition [0x00007f0ac8dfd000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1088) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "Catalina-utility-1" #18 prio=1 os_prio=0 tid=0x00007f0ae8c6a800 nid=0x699b waiting on condition [0x00007f0ad0143000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) "RMI TCP Accept-0" #13 daemon prio=5 os_prio=0 tid=0x00007f0ae850a000 nid=0x6995 runnable [0x00007f0ad056d000] java.lang.Thread.State: RUNNABLE at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409) at java.net.ServerSocket.implAccept(ServerSocket.java:545) at java.net.ServerSocket.accept(ServerSocket.java:513) at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:52) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:405) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:377) at java.lang.Thread.run(Thread.java:748) "RMI TCP Accept-43459" #12 daemon prio=5 os_prio=0 tid=0x00007f0ae84ca000 nid=0x6994 runnable [0x00007f0ad0694000] java.lang.Thread.State: RUNNABLE at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409) at java.net.ServerSocket.implAccept(ServerSocket.java:545) at java.net.ServerSocket.accept(ServerSocket.java:513) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:405) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:377) at java.lang.Thread.run(Thread.java:748) "RMI TCP Accept-0" #11 daemon prio=5 os_prio=0 tid=0x00007f0ae84b5000 nid=0x6993 runnable [0x00007f0ad0795000] java.lang.Thread.State: RUNNABLE at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409) at java.net.ServerSocket.implAccept(ServerSocket.java:545) at java.net.ServerSocket.accept(ServerSocket.java:513) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:405) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:377) at java.lang.Thread.run(Thread.java:748) "Service Thread" #9 daemon prio=9 os_prio=0 tid=0x00007f0ae80d8000 nid=0x6992 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C1 CompilerThread3" #8 daemon prio=9 os_prio=0 tid=0x00007f0ae80cc800 nid=0x6991 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread2" #7 daemon prio=9 os_prio=0 tid=0x00007f0ae80ca800 nid=0x6990 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread1" #6 daemon prio=9 os_prio=0 tid=0x00007f0ae80c9000 nid=0x698f waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x00007f0ae80c6000 nid=0x698e waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007f0ae80c4800 nid=0x698d waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007f0ae8091800 nid=0x698c in Object.wait() [0x00007f0ad26de000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144) - locked (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:216) "Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f0ae808f000 nid=0x698b in Object.wait() [0x00007f0ad27df000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:502) at java.lang.ref.Reference.tryHandlePending(Reference.java:191) - locked (a java.lang.ref.Reference$Lock) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153) "VM Thread" os_prio=0 tid=0x00007f0ae8085800 nid=0x698a runnable "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007f0ae8025000 nid=0x6980 runnable "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007f0ae8026800 nid=0x6981 runnable "GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00007f0ae8028800 nid=0x6982 runnable "GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00007f0ae802a000 nid=0x6983 runnable "GC task thread#4 (ParallelGC)" os_prio=0 tid=0x00007f0ae802c000 nid=0x6984 runnable "GC task thread#5 (ParallelGC)" os_prio=0 tid=0x00007f0ae802d800 nid=0x6987 runnable "GC task thread#6 (ParallelGC)" os_prio=0 tid=0x00007f0ae802f800 nid=0x6988 runnable "GC task thread#7 (ParallelGC)" os_prio=0 tid=0x00007f0ae8031000 nid=0x6989 runnable "VM Periodic Task Thread" os_prio=0 tid=0x00007f0ae850c000 nid=0x6996 waiting on condition JNI global references: 1235 Heap PSYoungGen total 144384K, used 45005K [0x000000076d000000, 0x0000000777b00000, 0x00000007c0000000) eden space 126976K, 35% used [0x000000076d000000,0x000000076fbf3608,0x0000000774c00000) from space 17408K, 0% used [0x0000000775d00000,0x0000000775d00000,0x0000000776e00000) to space 17408K, 0% used [0x0000000774c00000,0x0000000774c00000,0x0000000775d00000) ParOldGen total 175616K, used 22110K [0x00000006c7000000, 0x00000006d1b80000, 0x000000076d000000) object space 175616K, 12% used [0x00000006c7000000,0x00000006c85978a8,0x00000006d1b80000) Metaspace used 35192K, capacity 37248K, committed 37504K, reserved 1081344K class space used 4819K, capacity 5214K, committed 5248K, reserved 1048576K 2019-04-01 14:22:57.992 INFO 27001 --- [on(2)-127.0.0.1] inMXBeanRegistrar$SpringApplicationAdmin : Application shutdown requested. 2019-04-01 14:22:57.994 INFO 27001 --- [on(2)-127.0.0.1] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2019-04-01 14:22:58.004 INFO 27001 --- [on(2)-127.0.0.1] o.apache.catalina.core.StandardService : Stopping service [Tomcat] ``` ```

springboot部署微信公众号后出现http请求Error parsing HTTP request header错误,怎么解决?请求地址已经是http。

Error parsing HTTP request header Note: further occurrences of HTTP request parsing errors will be l

springboot实现https协议

<em>springboot</em>项目 是用<em>springboot</em>启动的 没有用铝tomcat 现在要配置https访问 现在 我用http访问可以跳转成https访问 但是项目<em>报错</em> ``` java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:422) ~[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:683) ~[tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) [tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) [tomcat-embed-core-8.5.15.jar:8.5.15] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.15.jar:8.5.15] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_152] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_152] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.15.jar:8.5.15] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_152] ``` 我的配置 ``` server: port: 8080 # context-path: /iuhao server.ssl.key-store: tomcat.keystore server.ssl.key-store-password: 123456 server.ssl.keyStoreType: JKS server.ssl.keyAlias: tomcat keytool: genkey: alias: tomcat #(别名) keypass: 123456 #(别名密码) keyalg: RSA #(生证书的算法名称,RSA是一种非对称加密算法) keysize: 1024 #(密钥长度,证书大小) validity: 365 #(证书有效期,天单位) keystore: E:/tomcat.keystore #(指定生成证书的位置和证书名称) storepass: 123456 #(获取keystore信息的密码) storetype: storetype #(指定密钥仓库类型) ``` 然后是代码 ``` @Configuration @EnableTransactionManagement @SpringBootApplication @Import({InitServiceConfiguration.class, InitConfiguration.class}) @ComponentScan("com.bonpoint") public class AppApiApplication { public static void main(String[] args) { SpringApplication.run(AppApiApplication.class, args); } /** * 文件上传配置 * @return */ // @Bean // public MultipartConfigElement multipartConfigElement() { // MultipartConfigFactory factory = new MultipartConfigFactory(); // //文件最大 // factory.setMaxFileSize("10240MB"); //KB,MB // /// 设置总上传数据总大小 // factory.setMaxRequestSize("10240MB"); // return factory.createMultipartConfig(); // } /** * it‘s for set http url auto change to https */ @Bean public EmbeddedServletContainerFactory servletContainer() { TomcatEmbeddedServletContainerFactory tomcat = new TomcatEmbeddedServletContainerFactory() { @Override protected void postProcessContext(Context context) { SecurityConstraint securityConstraint = new SecurityConstraint(); securityConstraint.setUserConstraint("CONFIDENTIAL");// confidential SecurityCollection collection = new SecurityCollection(); collection.addPattern("/*"); securityConstraint.addCollection(collection); context.addConstraint(securityConstraint); } }; tomcat.addAdditionalTomcatConnectors(httpConnector()); return tomcat; } @Bean public Connector httpConnector() { Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol"); connector.setScheme("http"); connector.setPort(80); connector.setSecure(false); connector.setRedirectPort(8080); return connector; } } ``` 请教一下大佬看我那里配置错了

服务器部署出现o.s.web.servlet.PageNotFound : No mapping for GET /springboot-1.0-SNAPSHOT/api/ap

1.bug重现 在服务器访问接口时时出现了这个错误 页面的错误是 其实明月大佬把问题说出来了!只是自己没有意识到! 2.bug总结 其主要的问题出现在(application.yml)这段代码上: 当这样访问时就会出现上述错误! http://服务器域名:8080/<em>springboot</em>-1.0-SNAPSHOT(tomcat解压后的war文件夹名)/api/showManageNam...

java.io.EOFException at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer

如题,网上找了相关资料查明是websocket连接超时的问题。使用了反向代理,因此超过60S没有数据传输的连接会断开。 把代理的那个超时时间设置长一点,无限长。你开什么玩笑!那还代理个啥玩意。 解决方法一:后台写个定时程序每&lt;60s频率给前端的socket发个消息就好了。 import org.springframework.context.annotation.Conf...

springboot启动报错org.apache.tomcat.util.net.NioEndpoint

<em>springboot</em>启动后就一直报这个,不影响访问,但是总觉得哪里不对,,,,,我使用的nohup java -jar -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Xms2048m -Xmx2048m -Xmn768m -Xss256k -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=15 jiyaoNewWeb-1.0.jar ><em>springboot</em>.log 2>&1 & 这个命令来启动的,我使用nohup java -jar xxx&命令来启动也是这样,这个怎么解决啊?? 2019-08-26 22:42:54,609 [https-jsse-nio-443-exec-1] ERROR org.apache.tomcat.util.net.NioEndpoint - java.lang.IllegalArgumentException: null at java.nio.Buffer.position(Buffer.java:244) at org.apache.tomcat.util.net.TLSClientHelloExtractor.skipBytes(TLSClientHelloExtractor.java:221) at org.apache.tomcat.util.net.TLSClientHelloExtractor.(TLSClientHelloExtractor.java:118) at org.apache.tomcat.util.net.SecureNioChannel.processSNI(SecureNioChannel.java:276) at org.apache.tomcat.util.net.SecureNioChannel.handshake(SecureNioChannel.java:174) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1436) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 这是我的pom==> 4.0.0 com.boot jiyaoNewWeb 1.0 jar org.springframework.boot spring-boot-starter-parent 1.5.9.RELEASE UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter-amqp com.aliyun aliyun-java-sdk-core 4.0.3 com.aliyun aliyun-java-sdk-dysmsapi 1.0.0 org.projectlombok lombok 1.16.20 provided org.springframework.boot spring-boot-configuration-processor true com.aliyun.oss aliyun-sdk-oss 2.7.0 org.apache.commons commons-lang3 3.4 commons-fileupload commons-fileupload 1.3.1 com.google.guava guava 23.0 org.apache.poi poi-ooxml 3.10-FINAL org.apache.commons commons-io 1.3.2 org.apache.httpcomponents httpcore 4.4.10 org.apache.httpcomponents httpclient 4.5.6 org.springframework.boot spring-boot-starter-freemarker org.springframework.boot spring-boot-starter-web org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.1 mysql mysql-connector-java com.alibaba druid 1.1.12 org.springframework.boot spring-boot-starter-test org.springframework.boot spring-boot-starter-security com.alibaba fastjson 1.2.54 org.springframework.boot spring-boot-starter-data-redis 1.5.13.RELEASE com.taobao taobao-sdk-java-auto_1554188611497 20190513 org.springframework.boot spring-boot-starter-aop org.springframework.boot spring-boot-maven-plugin org.apache.maven.plugins maven-jar-plugin 2.3.2 true com.boot.SpringWebApplication lib/

SpringBoot结合WebSocket遇到的一些坑,@Autowired注入bean失败

我在使用websocket时,我想在@ServerEndpoint声明的websocket服务器中通过@autowired自动注入一个对象,可是失败了,不管怎么用构造注入还是怎么的,都失败了,后来在网上看了很多资料,确实可以通过Spring 上下文来获取该对象。 这是在没改之前@ServerEndpoint中 找到解决方案后(贴源码): @ServerEndpoint("/websoc...

Tomcat报错:Invalid character found in method name. HTTP method names must be tokens

参考文章: https://blog.csdn.net/qiaojieqq11/article/details/51437568 https://blog.csdn.net/qq_1017097573/article/details/62235977 Tomcat<em>报错</em>: Note: further occurrences of HTTP header parsing errors wi...

运行springboot报错

之前省略 Error starting ApplicationContext. To display the auto-configuration report re-run your applica

Invalid character found in method name. HTTP method names must be tokens错误解决方法

Dec 27, 2018 2:48:38 PM org.apache.coyote.http11.AbstractHttp11Processor process INFO: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEB...

四、生产服务器报错:Invalid character found in method name. HTTP method names must be tokens

  项目在云服务器部署上线后,查看日志,每隔<em>一段时间</em>都<em>报错</em>如下: org.apache.coyote.http11.Http11Processor - Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. ja...

异常:Invalid character found in method name. HTTP method names must be tokens

1.异常截图:2.异常内容java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11Input...

springboot项目启动报错:Invalid character found in method name. HTTP method names must be tokens

Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. Invalid character found in method name. HTTP method names must be tokens。 20...

Invalid character found in method name. HTTP method names must be tokens.

今天使用Tomcat时遇到了这个错误信息,百度,Google出来的解决方案大多是在server.xml中加上maxHttpHeaderSize=”8192”或者把https改成http。我的项目用的本来就是http,maxHttpHeaderSize=”8192”也加上了,然而都没有解决我的问题。后来把默认端口8080改成了其他端口号,就可以了,遇到同样问题的小伙伴可以试一下。 ...

Php worker在15分钟的空闲时间后出现异常

I have written a php worker to fetch data from RabbitMQ queue.The php worker is running successfully as a background job on some server which connects RabbitMQ server for consuming data using AMQP php extension.After there is no data enqued in the queue for 15 minutes, php scripts throws AMQPException. Exception is : AMQPException Object ( [message:protected] =&gt; Library error: a socket error occurred [string:Exception:private] =&gt; [code:protected] =&gt; 0 [file:protected] =&gt; /home/indiamart/public_html/dev-weberp-auto-dialer/merp/devworker.php [line:protected] =&gt; 104 [trace:Exception:private] =&gt; Array ( [0] =&gt; Array ( [file] =&gt; /home/indiamart/public_html/dev-weberp-auto-dialer/merp/devworker.php [line] =&gt; 104 [function] =&gt; consume [class] =&gt; AMQPQueue [type] =&gt; -&gt; [args] =&gt; Array ( [0] =&gt; Closure Object ( [parameter] =&gt; Array ( [$message] =&gt; &lt;required&gt; [$q] =&gt; &lt;required&gt; ) ) ) ) ) [previous:Exception:private] =&gt; ) Below is my worker code: &lt;?php $callback_func = function(AMQPEnvelope $message, AMQPQueue $q){ $data = json_decode($message-&gt;getBody(), true); $getDeliveryTag = $message-&gt;getDeliveryTag(); $ack = $q-&gt;ack($getDeliveryTag);//used $getDeliveryTag $to = isset($data["to"])?$data["to"]:""; $subjectMail = isset($data["subject"])?$data["subject"]:""; $mail_body_content = isset($data["body"])?"&lt;pre&gt;".$data["body"]."&lt;/pre&gt;":""; $mailfrom = isset($data["mailfrom"])?$data["mailfrom"]:""; $cc = isset($data["cc"])?$data["cc"]:""; $mailfromname = isset($data["mailfromname"])?$data["mailfromname"]:""; $uniqueid = isset($data["unique_id"])?$data["unique_id"]:""; if(!$ack){//if ack not recieved $ack_msg = "Unique id: $uniqueid Subject : $subjectMail"; @mail("abc@example.com","History Queue Not acknowledged!",$ack_msg); } if($message-&gt;isRedelivery()){ $red_msg = "Unique id: $uniqueid Subject : $subjectMail"; @mail("abc@example.com","History Queue Redilivery!",$red_msg); } $m_headers_trail = "From:$mailfromname&lt;$mailfrom&gt; ". "Cc:$cc ". "MIME-Version: 1.0 ". "Content-type: text/html; charset=UTF-8"; $flag = @mail($to,$subjectMail,$mail_body_content,$m_headers_trail); $flag_message = $flag ? "success unique id: $uniqueid Subject :$subjectMail" : "mail failed"; @mail("abc@example.com","History Mailer Result",$flag_message); }; $host = "127.0.0.1"; $vhost = "/"; $port = 5672; $login = "admin"; $password = "admin"; CHANNEL : try{ @mail("abc@example.com","History Queue worker Start!","Worker started!"); $cnn = new AMQPConnection(array("host" =&gt; $host,"vhost" =&gt; $vhost,"port" =&gt; $port,"login" =&gt; $login,"password" =&gt; $password)); $cnn-&gt;connect(); if(!$cnn){ @mail("abc@example.com","History Queue Connection Error!","Connection not established!"); } $ch = new AMQPChannel($cnn); $queue = new AMQPQueue($ch); $queue-&gt;setName('STS_UPDATE_MAIL'); $queue-&gt;setFlags(AMQP_NOPARAM); $queue-&gt;consume($callback_func); $ch-&gt;close(); $cnn-&gt;close(); }catch(Exception $e){ if ($ch-&gt;isConnected()) { $ch-&gt;close(); @mail("abc@example.com","History Queue Closing Connection!","Closed!"); } if ($cnn-&gt;isConnected()) { $cnn-&gt;close(); @mail("abc@example.com","History Queue Closing Connection!","Closed!"); } goto CHANNEL; } ?&gt;

rancher容器网络出现问题,大面积服务启动失败、Timeout getting IP address

rancher容器网络出现问题,大面积服务启动失败。 如服务出现Timeout getting IP address 或者查看基础设施应&amp;gt;network-services&amp;gt;metadata&amp;gt;network-services-metadata-2日志出现:Failed to load answers from file: Failed to load answers from ...

Invalid character found in method name. HTTP method names must be tokens

Spring boot 整合Rides时抛出异常1、java.lang.IllegalArgumentException1.1、Invalid character found in method name 1、java.lang.IllegalArgumentException 1.1、Invalid character found in method name 错误日志 12:39:37....

信息: Error parsing HTTP request header

Error parsing HTTP request header然后F12报400 bad request如果在其他地方<em>运行</em>正常,如测试,然后本地报如下错误,有可能是 tomcat版本不一致造成的。三月 22, 2018 11:38:14 上午 org.apache.coyote.http11.AbstractHttp11Processor process 信息: Error parsing H...

springboot项目启动报错:java.io.EOFException: null

<em>springboot</em>项目启动时报:java.io.EOFException: null异常,但是不影响功能, 可能原因是由于tomcat上次非正常关闭时有一些活动session被持久化(表现为一些临时文件),在重启时,tomcat尝试去恢复这些session的持久化数据但又读取失败造成的。EOFException表示输入过程中意外地到达文件尾或流尾的信号,导致从session中获取数据失败。此异常...

Http请求自动变为了Https请求(Invalid character found in method name. HTTP method names must be to)

问题描述: java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens http请求自动变为了https请求 问题解决: 将上面的破玩意儿都删掉,只留下: &lt;meta charset="utf-8"&gt; ok,...

IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

错误信息 信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character found in met...

Tomcat执行一段时间报错

Tomcat执行<em>一段时间</em>后报如下错误: 27-Jun-2016 08:52:59.217 INFO [http-nio-80-exec-3] org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:232) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1013) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 根据要求,配置server.xml文件,加大maxHttpHeaderSize值,无效

teradata SQL报错:all expressions in a derived table must have an explicit name.

脚本如下: select date-1, card.card_num , card.host_cust_id,sum(bal), sum(b.total_lot), sum(c.total_lot)

Tomcat报错信息请教

各位高手,请问TOMCAT 8报如下错误信息要怎么处理?弄了好些天都没弄好。总是Tomcat启动用半个小时就挂掉了。 04-May-2016 10:50:24.342 INFO org.apache.

spring-boot项目遇到的一下问题

第一次在服务器上部署项目 直接进入问题吧 在使用 Java -jar xxx.jar 后出现 然后通过本机浏览器访问 是这样 的 备注: 1.安装了tomcat,没有修改tomcat的配置文件(不知道

java.lang.IllegalArgumentException: Invalid character found in method name

1、错误描述信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character found in metho

tomcat服务器报 java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method n

今早打开服务器,看到tomcat日志里面有如下信息: 11-Jul-2017 07:18:39.953 INFO [http-nio-8080-exec-2] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of...

SpringBoot之表单验证@Valid

SpringBoot提供了强大的表单验证功能实现,给我们省去了写验证的麻烦;这里我们给下实例,提交一个有姓名和年龄的表单添加功能,要求姓名不能为空,年龄必须是不小于18 ; 我们先新建一个Student实体package com.java1234.entity;import javax.persistence.Column; import javax.persistence.Entity; imp

HTTP method names must be tokens

关于Invalid character found in method name. HTTP method names must be tokens的问题 关于这个问题网上的资料很少,估计是很少人遇到这种情况,我遇到的这个情况应该是个神奇的存在。 <em>报错</em>代码如下: Jun 01, 2017 10:21:52 AM org.apache.coyote.http11.A

如何在同一台电脑上同时运行两个Tomcat(关于Invalid character found in method name.HTTP method names must be token.错误信息)

今天在学习一个项目的时候需要用到Tomcat8,而我的Tomcat版本是7,因为Tomcat7用的久了比较习惯又不想卸载,所以打算两个一起用,在网上查了同一台电脑上可以<em>运行</em>两个Tomcat后,就开始部署Tomcat8. 在看了一篇前辈的经验后将Tomcat8的startup.bat文件加了JDK的安装路径和Tomcat8所在路径,又将需要修改的三个端口号修改后启动Tomcat8出现了如下所示的错...

SpringCloud集成Invalid character found in method name. HTTP method names must be tokens

SpringCloud config服务启动,报该异常 java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine...

解决:Invalid character found in method name. HTTP method names must be tokens|the HTTP protoco

解决:Invalid character found in method name. HTTP method names must be tokens|the HTTP protoco。 这几天项目总是在凌晨挂机,查看日志发现以下错误: Http11Processor - Error parsing HTTP request header Note: further occurrenc...

Idea报错Invalid character found in method name. HTTP method names must be tokens

Idea测试访问页面<em>报错</em>: 2019-06-18 16:46:47.911 [http-nio-31001-exec-1] INFO o.a.coyote.http11.Http11Processor - Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will...

2015异常问题解决方案经验总结(一)

1.     could not find java.dll C:\Users\admin&amp;gt;java Error: Registry key 'Software\JavaSoft\JavaRuntime   has value '1.6', but '1.8' is required. Error: could not find java.dll Error: Could not...

Failed to load from file, META-INF/ServiceData.xml

org.apache.axis2.dataretrieval.AxisDataLocatorImpl.loadServiceData(AxisDataLocatorImpl.java:111)  DEBUG - Check loading failure for file, META-INF/ServiceData.xml org.apache.axis2.dataretrieval.Data

failed to load reponse data -- chrome

日常使用chrome 查看一些网页的reponse时候,发现有些页面reponse 为空,并且显示 Failed to load reponse data. 我一直在想,这些网站的防护动作是真好,什么也看不到。 今天login csdn 发现关键的post请求 reponse也是空,这简直没法往下进行工作了。 四处请教,论坛发帖。未果。 这才注意到reponse 页面上的failed to

springboot配置文件 application.yml注意事项(Failed to load property source from location 'classpath:/applica)

我们在配置application.yml经常会遇到配置文件加载失败下面我们列下常遇到的情况1、注释错误引起(application.yml采用的是#注释而不是//)<em>报错</em>信息:配置信息:2、缩进采用tab而不是空格引起的(不同配置之间也不能有tab出现,否则会<em>报错</em>)<em>报错</em>信息:application.yml配置:3、冒号后面必须有空格否则会<em>报错</em>配置信息:<em>报错</em>信息:4、正确的配置如下...

Do you want to dispalay coverage data for '***' Coverage Results'? IDEA

这个是在测试代码覆盖率才会显示的东西, 学渣英语理解就是要不要如何处理原来的覆盖率的数据 ,一种替换,一种添加,一种不管了 想再找到这个设置,只要Ctrl+Shift+A 输入settings打开设置搜索coverage,根据左侧的选择设置一下就好了 ...

springboot内置tomcat修改配置项

<em>springboot</em>内置tomcat修改配置项

这是什么错误 Illegalargumentexception:invalid characters in hostname

安装jre的时候就提示这个,有的时候使用Eclipse的时候也提示这个,说什么程序错误。 illegalargumentexception:invalid characters in hostname

Error parsing HTTP request header

小菜鸟一名,求助各位大神 错误信息: 2016-12-5 15:38:19 org.apache.coyote.http11.AbstractHttp11Processor process 信息: E

请大神帮忙一下解决: Note: further occurrences of HTTP header parsing errors will be logge

2018-08-19 00:00:47 - Error parsing HTTP request header Note: further occurrences of HTTP header par

Bad Request - Invalid Header

接收一个 post 请求,content-type:text/html;charset-utf-8 content-type:application/json content -type 是两个值的,

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

数据存储技术介绍下载

数据存储技术介绍(数据存储技术概述、存储介质、连接方式、DAS、NAS、SAN、虚拟存储、集群存储。) 相关下载链接:[url=//download.csdn.net/download/smarthurry/5074420?utm_source=bbsseo]//download.csdn.net/download/smarthurry/5074420?utm_source=bbsseo[/url]

stc单片机、使用外部24C02保存参数试验下载

51单片机stc、使用外部24C02保存参数试验的程序,已经调试过完全能用。 相关下载链接:[url=//download.csdn.net/download/chenchengcheng99/10553124?utm_source=bbsseo]//download.csdn.net/download/chenchengcheng99/10553124?utm_source=bbsseo[/url]

ico图片制作工具(绿化版),绝对好用下载

一款免费的图标编辑工具,让您轻松的创建 Windows XP 和 Windows Vista 图标。 在编辑区您可以轻松的预览、保存、更改您的图标。您可以将您喜欢的 图像转换为图标或图标转换为图像。内置 40 多个效果,强大的亮度、对比度、 饱和度、色调调整工具让您轻松修饰图标。 * 支持 Windows 98 / ME / 2000 / XP / Vista 图标和 PNG 压缩 * 超过 40 个效果和自定义滤镜 * 支持 256x256 分辨率 * 数据类型 2, 16, 256, 真彩色, 真彩色 + Alpha * 从 32 位 exe 和 dll 中提取图标 * 导入和导出图像 * 相关下载链接:[url=//download.csdn.net/download/sea517/934057?utm_source=bbsseo]//download.csdn.net/download/sea517/934057?utm_source=bbsseo[/url]

我们是很有底线的