Hi,
glassfish_at_javadesktop.org wrote:
> Hi,
> I can't find a way to configure the allowed maximum size of a HTTP POST request parameter. For example, trying to do a POST request parameter with size about 5mb fails with this:
>
> [code]
> PWC1406: Servlet.service() for servlet Console threw exception java.lang.IllegalStateException: Post too large
> at org.apache.coyote.tomcat5.CoyoteRequest.parseRequestParameters(CoyoteRequest.java:2918)
> at org.apache.coyote.tomcat5.CoyoteRequest.getParameter(CoyoteRequest.java:1281)
> at org.apache.coyote.tomcat5.CoyoteRequestFacade.getParameter(CoyoteRequestFacade.java:392)
> at remoteconsole.Console.processRequest(Console.java:34)
> [/code]
> (The stack frame at bottom is my code).
Add, under the http-listener, the following property:
<property name="maxPostSize" value="xxxx"/>
restart GlassFish and it should works. Note that it will use more memory
so pick the right value to avoid OOM :-)
>
> If sending a parameter this big is unusual, and I'm supposed to use multipart requests, can someone point to a simply way/library to do it?
Look at the HttpComponent project @ Apache. They have a nice API to do that.
Hope that help.
-- Jeanfrancois
>
> Thanks
>
> Dimitris
> [Message sent by forum member 'andreou' (andreou)]
>
> http://forums.java.net/jive/thread.jspa?messageID=256390
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>