users@glassfish.java.net

Re: IllegalStateException: Post too large

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 26 Sep 2007 09:53:41 -0700

Hi,

can you try adding, under http-service element in
${glassfish.home}/domains/domain/config/domain.xml the following
property (or use admin-gui):

<property name="maxPostSize" value="...."/>

Let me know the result.

Thanks

-- Jeanfrancois

glassfish_at_javadesktop.org wrote:
> Using:
> Sun Java System Application Server 9.1 (build b33)
> Java(TM) SE Runtime Environment (build 1.6.0-b105)
>
> I have a form that contains many fields of them one maps to a CLOB object which can be very
> large, why is there cutoff size for a POST request? Is there a way to change this? I've checked
> the Admin Guide but cannot seem to find any references to this. Any help would be much
> appreciated, this problem occurred in our production environment so it is a pressing issue here.
>
> Thanks,
>
> [code]
> [#|2007-09-26T07:30:53.076-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=httpSSLWorkerThread-1311-3;_RequestID=5476ad47-3cf1-42a2-950f-22ea94540130;|StandardWrapperValve[MyControllerServlet]:
> PWC1406: Servlet.service() for servlet MyControllerServlet threw exception
> java.lang.IllegalStateException: Post too large
> at org.apache.coyote.tomcat5.CoyoteRequest.parseRequestParameters(CoyoteRequest.java:2861)
> at org.apache.coyote.tomcat5.CoyoteRequest.getParameter(CoyoteRequest.java:1267)
> at org.apache.coyote.tomcat5.CoyoteRequestFacade.getParameter(CoyoteRequestFacade.java:375)
> at path.to.my.MyControllerServlet.processRequest(MyControllerServlet.java:48)
> at path.to.my.MyControllerServlet.doPost(MyControllerServlet.java:203)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
> at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
> at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
> at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
> |#]
> [/code]
> [Message sent by forum member 'kjsempire' (kjsempire)]
>
> http://forums.java.net/jive/thread.jspa?messageID=237168
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>