java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Maciej Marczuk

This error is caused by malformed HTTP request. You are trying to access unsecured page through https.

,
via cyber4.org by Unknown author

Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.

Solutions on the web

via Stack Overflow by Bala Murugan
, 10 months ago
Invalid character found in method name. HTTP method names must be tokens
via Google Groups by Robert van der Spek, 8 months ago
Invalid character found in method name. HTTP method names must be tokens
via segmentfault.com by Unknown author, 11 months ago
Invalid character found in method name. HTTP method names must be tokens
via Stack Overflow by user2016012
, 10 months ago
Invalid character found in method name. HTTP method names must be tokens
via Stack Overflow by sri
, 10 months ago
Invalid character found in method name. HTTP method names must be tokens
via GitHub by solomax
, 1 year ago
Invalid character (CR or LF) found in method name
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:233)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1017)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1524)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

75 times, 3 days ago
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.