Home > Back-end >  Invalid character found in method name. The HTTP method names must be tokens
Invalid character found in method name. The HTTP method names must be tokens

Time:09-25

[HTTP - nio - 8686 - exec - 1] INFO O.A.C.H.H ttp11Processor - [log, 182] - Error parsing the HTTP request header
Note: further occurrences of the HTTP header parsing errors will be logged at the DEBUG level.
Java. Lang. IllegalArgumentException: Invalid character found in method name. The HTTP method names must be tokens
The at org. Apache. Coyote. Http11. Http11InputBuffer. ParseRequestLine (Http11InputBuffer. Java: 428)
At org. Apache. Coyote. Http11. Http11Processor. Service (684) Http11Processor. Java:
The at org. Apache. Coyote. AbstractProcessorLight. Process (AbstractProcessorLight. Java: 66)
The at org. Apache. Coyote. AbstractProtocol $ConnectionHandler. Process (AbstractProtocol. Java: 800)
At org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1471)
The at org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1149)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 624)
At org, apache tomcat. Util. Threads. TaskThread $WrappingRunnable. Run (61) TaskThread. Java:
The at Java. Lang. Thread. The run (Thread. Java: 748)

Development environment is springboot , a login to meet the wrong, sometimes will cause the failure of landing puzzling,
Not a tomcat memory problems, set up to use,

CodePudding user response:

A big help to see this error: how do you solve

CodePudding user response:

https://www.jianshu.com/p/226b01e51929

I guess you need to configure maxHttpHeaderSize is

CodePudding user response:

Max - HTTP header - size: 8192 this is tomcat memory Settings, I set up meters also useful,
Now landing caused mainly affect my is sometimes is not normal, enter the password interface directly to refresh, also do not have any error, and will continue to input 2 or 3 times to enter,
  • Related