Request Entity Too Large (JasperServer / Apache / Tomcat)
<p>I get following error when I try to access some JasperReports Server pages:</p>

<blockquote>
  <p>Request Entity Too Large The requested resource
  /jasperserver/olap/viewOlap.html  does not allow request data with GET
  requests, or the amount of data provided in the request exceeds the
  capacity limit.</p>
</blockquote>

<p>I checked the Apache log files and got following error in mod_jk.log</p>

<blockquote>
  <p>[Thu Nov 10 10:25:00 2016][8964:3876] [error]
  ajp_marshal_into_msgb::jk_ajp_common.c (517): failed appending the
  query string of length 7417</p>
</blockquote>

<p>I already tried many different ways to solve it.</p>

<p>I added the maxHttpHeaderSize and max_packet_size attributes to the ajp connect of Tomcat (server.xml):</p>

<pre><code>&lt;Connector port="8010" protocol="AJP/1.3" connectionTimeout="20000" redirectPort="8443" maxHttpHeaderSize="65536" max_packet_size="65536" /&gt;
</code></pre>

<p>Also I added the LimitRequestLine, LimitRequestBody, LimitRequestFieldSize and LimitRequestFields to the Apache httpd.conf file (added it to the end of the file without any VirtualHost):</p>

<p><code>LimitRequestLine 65536
LimitRequestBody 0
LimitRequestFieldSize 65536
LimitRequestFields 10000</code></p>

<p>I am still getting the error above.</p>

<p>I also found some suggestions to add the max_packet_size to the workers.properties of Apache. But if I add the attribute I get a HTTP 400 error and a white page. That's why I commented the property in workers.properties:</p>

<p><code>#worker.jasper.max_packet_size=65536</code></p>

<p>I restarted all services after changing the configurations.</p>

<p>When I access the same pages via HTTP-Connector of Tomcat (<a href="http://HOSTNAME:8081/jasperserver/." rel="nofollow noreferrer">http://HOSTNAME:8081/jasperserver/.</a>.) it works fine. Only when I access it via AJP-Connector of Apache (<a href="http://HOSTNAME/jasperserver/." rel="nofollow noreferrer">http://HOSTNAME/jasperserver/.</a>.) I get the error. So I think there should be any problem with the AJP-Connector.</p>

<p>Apache: 2.4.12
JasperReports Server: 6.2.1
Apache Tomcat Version 8.0.14: </p>

<p>Does anyone have a suggestion what I have to do to solve the issue?</p>