URL length

Hello to all!

In last few days I have seen next error:

Generic Connector Communication Error:
Please check and adjust your setup:
Ensure that Tomcat is running on given host and port.
If this is a timeout error consider adjusting IIS timeout by changing executionTimeout attribute in web.config (see manual).

when I trying to submit form with mora than 2000 characters. I chek my IIS request filter setting and set up maximum limmit for maximum URL length. But the error was shown again.

But, less than 2000 characters I can send.

Probably somebody mets this problem. How I can solve it?

I’m using lucee 5.3.2.77 on Windows 2008 R2. IIS 7, Tomcat ver 9.0.20

Hi @Temza, Be welcome!!! What happens if you do the test directly to tomcats port 8888? And: Do the tests cause any entries in any of the tomcat logs?

HTTP Status 400 – Bad Request

Type Exception Report

Message Request header is too large

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

Exception

java.lang.IllegalArgumentException: Request header is too large org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:720) org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:448) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1839) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:834)

Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/9.0.20

That’s error from direct request to Tomcat

try using <form action="POST">?

Yes!

1 Like

Thanks! It was my mistake. Forget to set method=Post. Found some articles about setting parameters for HTTP in registry MaxFieldLength and UrlSegmentMaxLength it might be helpful for somebody.