Chat with us, powered by LiveChat
JBoss EAP 6: Request header is too large
Microsoft Azure. What is it? IaaS, PaaS, SaaS?
24 octubre, 2017
Enable debug mode for Oracle BI Publisher 11g
18 diciembre, 2017

If, when testing a Java application on a JBoss EAP 6 Server, a message like the following appears:

12:12:27,174 DEBUG [org.apache.coyote.http11] (http- JBWEB003070: Error parsing HTTP request header: java.lang.IllegalArgumentException: JBWEB002015: Request header is too large
   at org.apache.coyote.http11.InternalInputBuffer.fill( [jbossweb-7.5.24.Final-redhat-1.jar:7.5.24.Final-redhat-1]
   at org.apache.coyote.http11.InternalInputBuffer.parseHeader( [jbossweb-7.5.24.Final-redhat-1.jar:7.5.24.Final-redhat-1]
   at org.apache.coyote.http11.InternalInputBuffer.parseHeaders( [jbossweb-7.5.24.Final-redhat-1.jar:7.5.24.Final-redhat-1]
   at org.apache.coyote.http11.Http11Processor.process( [jbossweb-7.5.24.Final-redhat-1.jar:7.5.24.Final-redhat-1]
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( [jbossweb-7.5.24.Final-redhat-1.jar:7.5.24.Final-redhat-1]
   at$ [jbossweb-7.5.24.Final-redhat-1.jar:7.5.24.Final-redhat-1]
   at Source) [rt.jar:1.8.0_144]

It is because the size of the request we send is much larger than the allowed size, than by default of 8 KB.

To solve this message, simply add the following property to either the standalone.xml or domain.xml file in which we will increase the maximum allowed of the request to 64 KB:

<property name="org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE" value="65536"/>

Then we restart the server and test the application again.

We will see that the message has disappeared and that our application works normally!

Comments are closed.