HTTP method names must is tokens__ the service end of the pit

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.