Jetty: Form too large in dev mode

927 views
Skip to first unread message

francescoNemesi

unread,
Aug 3, 2010, 11:05:34 AM8/3/10
to Google Web Toolkit
Hello there,

I get the error below "Form too large280504>200000" in dev mode. I
looked for this error on Google and found that this problem can be
fixed by setting the

org.mortbay.http.HttpRequest.maxFormContentSize

property to a value higher than the default (200000).

How can I do this in the GWT dev mode Jetty instance?

Thanks for your help,
Francesco

java.lang.IllegalStateException: Form too large280504>200000
at org.mortbay.jetty.Request.extractParameters(Request.java:1404)
at org.mortbay.jetty.Request.getParameter(Request.java:749)
at
com.fusioncharts.exporter.FusionChartsExportHelper.parseExportRequestStream(FusionChartsExportHelper.java:
182)
at org.apache.jsp.FCExporter_jsp._jspService(FCExporter_jsp.java:176)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
324)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)

bromley

unread,
Apr 13, 2011, 9:45:45 AM4/13/11
to google-we...@googlegroups.com
For anyone else that is struggling with this, I found that you can get around it by setting the following JVM argument:

-Dorg.mortbay.jetty.Request.maxFormContentSize=-1

(e.g. you can do this through Eclipse's Run Configuration options by putting the above in the VM arguments box.)
Reply all
Reply to author
Forward
0 new messages