From: trubliphone <tru...@go...> - 2010-11-30 05:50:26
|
Hello. I have written some XQuery to upload an XML file via an HTTP POST. At one point, with small test examples, my code was working fine. Now, though, the code fails with the following error: <snip> 29 Nov 2010 21:40:52,128 [P1-9] WARN (ServletHandler.java [handle]:577) - EXCEPTION javax.servlet.ServletException: An error occurred: Form too large at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 29 Nov 2010 21:40:52,128 [P1-9] ERROR (ServletHandler.java [handle]:593) - /exist/rest/db/cim/instance/store_string.xq: java.lang.IllegalStateException: Form too large at org.mortbay.http.HttpRequest.extractParameters(HttpRequest.java:877) at org.mortbay.http.HttpRequest.getParameterNames(HttpRequest.java:931) at org.mortbay.jetty.servlet.ServletHttpRequest.getParameterNames(ServletHttpRequest.java:656) at org.exist.http.urlrewrite.XQueryURLRewrite$RequestWrapper.<init>(XQueryURLRewrite.java:820) at org.exist.http.urlrewrite.XQueryURLRewrite$RequestWrapper.<init>(XQueryURLRewrite.java:800) at org.exist.http.urlrewrite.XQueryURLRewrite.doFilter(XQueryURLRewrite.java:197) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) </snip> Looking online [ http://exist.2174344.n4.nabble.com/Error-500-Form-too-large-td2191409.html], I've found that the solution is to set "org.mortbay.http.HttpRequest.maxFormContentSize" to something really big. However, this had no effect. Does anybody have any other ideas? Many thanks for your help. |