tomcat报org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header异常

发布于 2022-01-02 12:29:51 字数 6101 浏览 773 评论 14

07-Jan-2016 23:21:07.666 INFO [http-nio-8202-exec-163] 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 (CR or LF) found in method name
	at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:228)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1010)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

08-Jan-2016 00:21:44.954 INFO [http-nio-8202-exec-226] 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 (CR or LF) found in method name
	at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:228)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1010)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

08-Jan-2016 09:44:54.417 INFO [http-nio-8202-exec-226] 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 (CR or LF) found in method name
	at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:228)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1010)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

08-Jan-2016 16:30:15.457 INFO [http-nio-8202-exec-205] 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 (CR or LF) found in method name
	at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:228)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1010)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

08-Jan-2016 18:30:48.893 INFO [http-nio-8202-exec-220] 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 (CR or LF) found in method name
	at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:228)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1010)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

服务器运行环境:tomcat8 + java8

tomcat 配置如下:

protocol="org.apache.coyote.http11.Http11NioProtocol"
        executor="tomcatThreadPool"
        maxThreads="512"
        minSpareThreads="16"
        maxSpareThreads="32"
        enableLookups="false"
        redirectPort="8443"
        acceptCount="512"
        debug="0"
        connectionTimeout="60000"
        disableUploadTimeout="true" URIEncoding="UTF-8" useBodyEncodingForURI="true"
懂这个的朋友请指教一下, 谢谢!



如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(14

好听的两个字的网名 2022-01-08 02:23:53

一台机器部了几个Tomcat,只有8080端口的一直报异常,不影响正常服务;

改了端口号就不报错了,不清楚什么原因。

 

May 31, 2017 5:05:23 PM org.apache.coyote.http11.AbstractHttp11Processor process
SEVERE: Error processing request
java.lang.NullPointerException
    at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:355)
    at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:707)
    at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:727)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:416)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
    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)

归属感 2022-01-08 02:23:53

我的项目偏偏8.5和9.0的会偶尔会报这个错误,7.0的反到不会。特别是在ctrl+F5强制刷新页面的时候出现几率最高,郁闷。。。。不知道什么原因

青萝楚歌 2022-01-08 02:23:52

什么都没有,就这样了 、

五月 22, 2017 3:47:33 下午 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.ArrayIndexOutOfBoundsException: -2

左岸枫 2022-01-08 02:23:49

我也是,下面有个解决办法感觉挺靠谱的。我正在试验,跑两天试试。

If you have this listener:

    <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>

on your server.xml, remove it and try. You can not use a keystore if you are using the APR connector

 

原文地址:

http://stackoverflow.com/questions/18819180/tomcat-7-0-43-info-error-parsing-http-request-header/30245295

 

苍暮颜 2022-01-08 02:23:49

遇到同样的问题,版本好像是8.5 先把这段配置注释了试一下

檐上三寸雪 2022-01-08 02:23:47

Http11NioProtocol 改为 Http11ArpProtocol   试一试

情痴 2022-01-08 02:23:30

您的问题解决了么?我们的服务器目前也是,可以正常启动,用一段时间就报http11.AbstractHttp11Processor.process Error processing request java.lang.NullPointerException

归属感 2022-01-08 02:23:25

回复
请问你这个最后怎解决的,最近也遇到了这样的问题

夜司空 2022-01-08 02:22:53

回复
解决了,但怎么解决的给忘了,刚刚查了一下问题记录,也没找到,很抱歉.模糊的记得这个问题不经意就解决了,一开始也是很郁闷.

眼泪淡了忧伤 2022-01-08 02:18:12

我也是很郁闷,一台服务器从不出现问题,另一台缺偶尔出现,我再排查下原因,还是谢谢你

孤独患者 2022-01-08 02:08:49

我郁闷,同求啊~~~每天都报这个bug

女中豪杰 2022-01-08 01:48:58

debug="0"有这个参数吗?

蓝颜夕 2022-01-07 17:35:10

你解决了吗?我也遇到了同样的问题。

断爱 2022-01-03 14:25:41

这有啥难,新下载个tomcat启动试试就知道了

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文