java.lang.IllegalArgumentException

Invalid character found in method name. HTTP method names must be tokens

Samebug tips2

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

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19673

  • via Google Groups by Xin Gong, 9 months ago
    Invalid character found in method name. HTTP method names must be tokens
  • Invalid character found in method name. HTTP method names must be tokens
  • via Google Groups by Robert van der Spek, 4 months ago
    Invalid character found in method name. HTTP method names must be tokens
  • Stack trace

    • java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:462)[tomcat-embed-core-8.5.4.jar:8.5.4] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:994)[tomcat-embed-core-8.5.4.jar:8.5.4] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)[tomcat-embed-core-8.5.4.jar:8.5.4] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)[tomcat-embed-core-8.5.4.jar:8.5.4] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)[tomcat-embed-core-8.5.4.jar:8.5.4] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)[tomcat-embed-core-8.5.4.jar:8.5.4] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_102] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.5.4.jar:8.5.4] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_102]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 6 months ago
    Unknown user
    Once, 6 months ago
    Once, 6 months ago
    Unknown user
    Once, 11 months ago
    7 times, 1 month ago
    7 more bugmates