Tomcat报错Invalid character found in the request target. The valid characters are defined in RFC 7230

  问题描述:后台报错

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.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:285)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1045)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495)
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)

Tomcat报错Invalid character found in the request target. The valid characters are defined in RFC 7230

 

 

解决方法:

Tomcat报错Invalid character found in the request target. The valid characters are defined in RFC 7230

 

 Tomcat报错Invalid character found in the request target. The valid characters are defined in RFC 7230

 

 

 然后重启tomcat服务就可以了!!!

 

上一篇:Golang系列中常用包


下一篇:How does CRM middleware knows which sites are interested with CRM local changes