I’m troubleshooting a Java app where XML is sent between two systems using HTTP POST and Servlet. I suspect that the problem is that the XML is growing way too big. Is it possible that this is the problem? Is there a limit?
When it doesn’t work, the request.getParameter("message") on the consumer side will return null. Both apps are running on TomCat. For instance, an XML document of size 1.73mb will not make it through.
As per this the default is 2 MB for your
<Connector>.Edit Tomcat’s server.xml. In the
<Connector>element, add an attributemaxPostSizeand set a larger value (in bytes) to increase the limit.Having said that, if this is the issue, you should have got an exception on the lines of
Post data too bigin tomcatFor Further Info