About invalid character found in method name. HTTP method names must is tokens problem
There is little information on the Internet, and it is estimated that very few people have encountered this situation, and the situation I encountered should be a magical one.
The error code is as follows:
June, 2017 10:21:52 AM org.apache.coyote.http11.AbstractHttp11Processor process info:error parsing HTTP request Header
Note:further occurrences of HTTP header parsing errors'll is logged at the DEBUG level. Java.lang.IllegalArgumentException:Invalid character found in method name. HTTP method names must is tokens at Org.apache.coyote.http11.InternalNioInputBuffer.parseRequestLine (internalnioinput buffer.java:266) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:996) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:623) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (nioendpoint.java:1756) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.run (nioendpoint.java:1715) 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:724)
1 2 3 4 5 6 7 8 9 10 11 12-13
On the internet, it was said to add maxhttpheadersize= "8192" to the Server.xml, but it didn't work.
Later on the Internet to see a paste, said it was originally HTTP request error using HTTPS way request will be reported that the wrong, so tested a bit, indeed so.