I'm not sure if I should post here or at Tomcat, but since the code is in jbossweb.jar, I'll start here...
I have an integration with an external provider that posts xml to us via a POST with a parameter of
xml containing the payload, along with some other parameters. I've implemented AbstractResource to install a servlet to receive these posts.
This has been working great for over a year, until recently when they tried to post over 3.5mb of XML (after URLEncoding). For this particular post, calling request.getParameter(
xml) returns null. However, if I dump the content of the request and parse it manually, the parameter is actually there, along with all the data.
I can't find the source for jbossweb.jar in the Seam source code, so I don't know what exactly is going on. I've seen that org.apache.catalina.connector.Request.getParameter() can throw IllegalStateException if the content is too large, but I'm not seeing any exception in the log. I'm just getting null back.
Any ideas? Also, how do I increase the maximum size of a post, in case that really is the problem?
Seam must be swallowing the IllegalStateException somewhere, as when I increased the maxPostSize by setting it in server.xml's Connection node (default was 2mb), it started working.