POST data size limit

A generic Mobile Form workflow involves rendering a form, filling up fields and then submit it for further processing. Mobile Form submits data to server on HTTP POST. If the form is very big or it is merged with large size data, sometimes there is chance that the submission payload exceeds the default limit of the server. In this case, you might see HTTP 500 error on form submission. If you inspect the server logs, you will see this exception – “Template is not specified”.

On jboss server, POST size limit is 2MB as per its documentation. You can increase the POST size limits and here is how to do it for JBOSS.

  • Go to <jboss_dir>/server/<server_name>/deploy/jbossweb.sar directory and look for server.xml.
  • There is a <Connector> specified for “HTTP/1.1” protocol like this

<Connector protocol=”HTTP/1.1″ port=”8080″ ….>

  • Add an attribute “maxPostSize” to this if not already added. Specify its value as per the requirement. ‘0’ means there is no limit on POST size.

After changing the settings, you have to restart the app server to affect these changes. After this you should be able to submit the form.

Leave a Reply

Your email address will not be published. Required fields are marked *