title: How do I configure Jetty to allow larger forms when used with Spark Framework
body: <p>How do I configure Jetty options via <a href="http://sparkjava.com/" rel="nofollow noreferrer">Spark framework</a> ?</p>
  
  <p>Im getting the problem below when i submit a large form. The solution for Jetty is documented at <a href="https://stackoverflow.com/questions/3861455/form-too-large-exception">Form too Large Exception</a> </p>
  
  <p>But Jetty is hidden from me using Spark Framework, how would I configure to resolve this.</p>
  
  <pre><code>    org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
          at org.eclipse.jetty.server.Request.getParameters(Request.java:373)
          at org.eclipse.jetty.server.Request.getParameter(Request.java:1016)
          at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:194)
          at spark.Request.queryParams(Request.java:283)
          at spark.http.matching.RequestWrapper.queryParams(RequestWrapper.java:141)
          at com.jthink.songkong.server.callback.ServerEditSongs.startTask(ServerEditSongs.java:45)
          at com.jthink.songkong.server.CmdRemote.lambda$null$62(CmdRemote.java:171)
          at spark.RouteImpl$1.handle(RouteImpl.java:72)
          at spark.http.matching.Routes.execute(Routes.java:61)
          at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:130)
          at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50)
          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1568)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
          at org.eclipse.jetty.server.Server.handle(Server.java:564)
          at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
          at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
          at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
          at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
          at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
          at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
          at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
          at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
          at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
          at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:59
  1)
          at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalStateException: Form too large: 273433 &gt; 200000
          at org.eclipse.jetty.server.Request.extractFormParameters(Request.java:516)
          at org.eclipse.jetty.server.Request.extractContentParameters(Request.java:454)
          at org.eclipse.jetty.server.Request.getParameters(Request.java:369)
          ... 26 more
  </code></pre>