2018-03-23 18:32:21,690 [INFO] [http-nio-11007-exec-2] org.apache.coyote.http11.Http11Processor [DirectJDKLog.java : 181] 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.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:426)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:687)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
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: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)

原因:

产生这个问题的原因是页面表单提交了大量的数据,而这些数据量可能超过了Tomcat 定义的Header头内容,那么很好解决了,只要设置一下Tomcat的maxHttpHeaderSize

解决方案:

  由于采用的是springboot 内置的tomcat

server:
port: 9090
maxHttpHeaderSize: 10240000
maxHttpPostSize: 10240000
tomcat:
maxHttpHeaderSize: 10240000
maxHttpPostSize: 10240000

扩展: springboot tomcat的配置选项大全

server. Port = xxxx

server. Address =

server. contextPath =

server. displayName =

server. servletPath =

server. contextParameters =

server. useForwardHeaders =

server. serverHeader =

server. maxHttpHeaderSize =

server. maxHttpPostSize =

server. connectionTimeout =

server. session.timeout =

server. session.trackingModes =

server. session.persistent =

server.session.storeDir =

server.cookie. name =

server.cookie. domain =

server.cookie. path =

server.cookie. comment =

server.cookie. httpOnly =

server.cookie. secure =

server.cookie. maxAge =

server. ssl. Enabled =

server.ssl. clientAuth =

server.ssl. ciphers =

server.ssl. enabledProtocols =

server.ssl. keyAlias =

server.ssl. keyPassword =

server.ssl. keyStore =

server.ssl. keyStorePassword =

server.ssl. keyStoreType =

server.ssl. keyStoreProvider =

server.ssl. trustStore =

server.ssl. trustStorePassword =

server.ssl. trustStoreType =

server.ssl. trustStoreProvider =

server.ssl. protocol =

server.compression. enabled =

server.compression.mimeTypes =

server.compression.excludedUserAgents =

server.compression.minResponseSize =

server. jspServlet. className =

server.jspServlet. initParameters =

server.jspServlet.registered =

server.tomcat.accesslog.enabled =

server.tomcat.accesslog.pattern =

server.tomcat.accesslog.directory =

server.tomcat.accesslog.prefix =

server.tomcat.accesslog.suffix =

server.tomcat.accesslog.rotate =

server.tomcat.accesslog.renameOnRotate =

server.tomcat.accesslog.requestAttributesEnabled=

server.tomcat.accesslog.buffered =

server.tomcat.internalProxies =

server.tomcat.protocolHeader =

server.tomcat.protocolHeaderHttpsValue =

server.tomcat.portHeader =

server.tomcat.remoteIpHeader=

server.tomcat.basedir =

server.tomcat.backgroundProcessorDelay =

server.tomcat.maxThreads =

server.tomcat.minSpareThreads =

server.tomcat.maxHttpPostSize =

server.tomcat.maxHttpHeaderSize =

server.tomcat.redirectContextRoot =

server.tomcat.uriEncoding =

server.tomcat.maxConnections =

server.tomcat.acceptCount =

server.tomcat.additionalTldSkipPatterns =

Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level的更多相关文章

  1. TOMCAT Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

    十二月 31, 2014 2:32:45 下午 org.apache.coyote.http11.AbstractHttp11Processor process信息: Error parsing HT ...

  2. 信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level

    四月 , :: 下午 org.apache.coyote.http11.AbstractHttp11Processor process 信息: Error parsing HTTP request h ...

  3. Tomcat:Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

    可能原因一: 在本地tomcat启动正常并且访问正常的项目放在服务器上tomcat报以上错误. 本地tomcat为7.0.68,服务器上为7.0.86 错误原因:服务器tomcat版本过高. 解决办法 ...

  4. Get提交数据过大,tomcat报错,信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level

    原因 get提交的数据过大,超过了默认值. 解决办法 get提交配置 设置tomcat的server.xml.找到我们启动的端口,一般是8080,增加maxHttpHeaderSize= " ...

  5. further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误

    今天进行项目测试的时候出现了further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误,查了半 ...

  6. further occurrences of HTTP header parsing errors will be logged at DEBUG level.

    1.   获取参数Json的值为null String json=request.getParameter("Json"); 首先检查是否有下面的东东, 信息: Error par ...

  7. HTTP header parsing errors will be logged at DEBUG level

    -- ::-exec-] INFO org.apache.coyote.http11.Http11Processor - Error parsing HTTP request header Note: ...

  8. [Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors

    手机客户端向服务器提交Http请求时,Tomcat抛出错误: 十二月 31, 2014 2:32:45 下午 org.apache.coyote.http11.AbstractHttp11Proces ...

  9. Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors...java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are

    先将异常信息贴出: 该问题是tomcat进行http request解析的时候报的错,网上的解决办法主要是修改Tomcat的server.xml,在<Connector port="8 ...

随机推荐

  1. JavaScript 实现全选 / 反选功能

    JavaScript 实现全选 / 反选功能 版权声明:未经授权,内容严禁转载! 构建主体界面 编写 HTML 代码 和 CSS 代码,设计主题界面 <style> #user { wid ...

  2. Duilib 实现开关按钮

    转载:http://blog.csdn.net/wuan584974722/article/details/25045737 我们在做MFC程序时候经常会一个切换式的按钮,之前我的做法是利用butti ...

  3. Memcached深入分析及内存调优

    到这里memcached的初步使用我们已经没问题了,但是了解一些它内部的机制还是十分必要的,这直接涉及到你能否把memcached给真正“用好”. Memcached的守护进程机制使用的是Unix下的 ...

  4. 【附6】hystrix metrics and monitor

    一.基本方式 hystrix为每一个commandKey提供了计数器 二.实现流程 https://raw.githubusercontent.com/wiki/Netflix/Hystrix/ima ...

  5. 【附1】hystrix详述(1)

    一.hystrix的作用 控制被依赖服务的延时和失败 防止在复杂系统中的级联失败 可以进行快速失败(不需要等待)和快速恢复(当依赖服务失效后又恢复正常,其对应的线程池会被清理干净,即剩下的都是未使用的 ...

  6. dp专题训练

    ****************************************************************************************** 动态规划 专题训练 ...

  7. java web项目配置https访问

      转载: tomcat6配置:  1.单向认证,就是传输的数据加密过了,但是不会校验客户端的来源  2.双向认证,如果客户端浏览器没有导入客户端证书,是访问不了web系统的,找不到地址  如果只是加 ...

  8. Mybatis配置映射文件中parameterType的用法小结

    原创: 在mybatis映射接口的配置中,有select,insert,update,delete等元素都提到了parameterType的用法,parameterType为输入参数,在配置的时候,配 ...

  9. ajax中的contentType使用

    本文为博主原创,未经允许不得转载: 最近在修改部分项目功能的时候,遇到一个问题.局部刷新某页面的功能是由ajax实现的,但当我进行局部刷新的时候,页面并没有刷新和响应, 在后台的代码中打了断点也并没有 ...

  10. 解决复制到keil编辑器中汉字出现乱码情况

    https://blog.csdn.net/dxuehui/article/details/51123372 1.在菜单栏中选择'Edit'选项. 2.'Edit'选项中选择'Configuratio ...