Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986


Oct 11, 2018 8:35:23 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.
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.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:189)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1000)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
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)

 

1.转义 (encodeURI)
2.使用7.0.69以下版本的Tomcat(本来服务器上的tomcat就是7.0)
3.修改Tomcat的某些配置文件

这个报错 我从网上找了解决办法 都试了下 都不管用

但是对程序没影响   有大佬如果可以解决请赐教

posted @ 2018-10-11 11:22  sysogg  阅读(182)  评论(0编辑  收藏  举报