Tomcat 7.0.43“INFO:解析HTTP请求标头时出错” [英] Tomcat 7.0.43 "INFO: Error parsing HTTP request header"

查看:142
本文介绍了Tomcat 7.0.43“INFO:解析HTTP请求标头时出错”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Tomcat 7.0.43与websocket应用程序一起使用。我的应用程序在Tomcat 7.0.42中工作正常,但是当我尝试在websockets上访问我的服务器时,我得到以下输出:

I use Tomcat 7.0.43 with a websocket application. My app works fine in Tomcat 7.0.42 but with 43 I get the following output when I try to access my server on websockets:

Sep 16, 2013 3:08:34 AM org.apache.coyote.http11.AbstractHttp11Processor process
INFO: Error parsing HTTP request header
 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

我的浏览器控制台显示以下内容:

My browser console shows the following:

WebSocket connection to 'ws://www.testapp.com/socket/notification/848df2e62fcf93e1b3?X-Atmosphere-tracking-i…Date=0&Content-Type=application/json;%20charset=UTF-8&X-atmo-protocol=true' failed: Unrecognized frame opcode: 5 

以下是该请求的访问日志:

Here is the access log for that request:

"GET /socket/notification/848df2e62fcf93e1b3?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.0.2-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&Content-Type=application/json;%20charset=UTF-8&X-atmo-protocol=true HTTP/1.1"

发生了什么变化在Tomcat 7.0.43中?我需要更改什么?

推荐答案

如果你有这个听众:

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

在您的server.xml上,删除它并尝试。
如果使用APR连接器

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

这篇关于Tomcat 7.0.43“INFO:解析HTTP请求标头时出错”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆