08-Jun-2017 19:44:06.257 信息 [http-nio-8080-exec-2] org.apache.coyote.http11.Http11Processor.service 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 the request target. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:467)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:667)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
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)
例:新开发的功能在谷歌上运行正常,到了IE上报此错误,出现乱码等,检测tomcat版本过高的问题,
1.修改jar包里面的工具类,
2.jsp页面乱码问题转换:
如果一次转码不成功就转两次:
list.jsp:
window.open(encodeURI(encodeURI(url)),'',"height:600px,width=850px,help:no;status:no");
update.jsp:
<head>前添加:
<%
String deviceName=URLDecoder.decode(request.getParameter("deviceName"),"utf-8");
request.setAttribute("deviceName", deviceName);
%>
<body>里value值:
<input type="text" readonly="readonly" value="<%=deviceName%>" id="deviceName" name="deviceName"/>
谷歌浏览器与IE浏览器不兼容问题
最新推荐文章于 2022-12-07 16:11:01 发布