clafonta / Mockey

Mockey is a tool for testing application interactions over http, with a focus on testing web services, specifically web or native applications that consume XML, JSON, and HTML. Mockey's purpose is to be a simple front end to writing mock-test-responses to the file system for persistence to git.
118 stars 39 forks source link

Form too large #94

Closed davebow closed 8 years ago

davebow commented 8 years ago

I am receiving the following exception from an expectation associated with a web service. Is this related to 'maxFormContentSize' in Jetty? If so, is it possible that it could be configurable when running mockey.jar?

2016-09-14 15:39:07,224 ERROR [Slf4jLog]: /scenario java.lang.IllegalStateException: Form too large344201>200000 at org.eclipse.jetty.server.Request.extractParameters(Request.java:256) at org.eclipse.jetty.server.Request.getParameter(Request.java:655) at com.mockey.ui.ScenarioServlet.service(ScenarioServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:521) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1218) at com.mockey.server.EnableCorsFilter.doFilter(EnableCorsFilter.java:69) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1189) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:434) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:118) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:495) at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:179) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:371) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:116) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:243) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:112) at org.eclipse.jetty.server.Server.handle(Server.java:337) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:562) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1000) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:736) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:415) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:437) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:435) at java.lang.Thread.run(Unknown Source)

clafonta commented 8 years ago

Got something that I can reproduce this with? I'll then troubleshoot and see what I can do.

davebow commented 8 years ago

Thanks clafonta.

Unfortunately I cannot provide the specific response for security reasons. Any large response appears to cause the problem. E.g. the attached blahresponse.txt

clafonta commented 8 years ago

I could reproduce the issue with your blahresponse.txt attachment. Thanks. I committed a fix and updated the pre-builds. I'll close, but If it doesn't work for you, ping me and I'll re-visit.

Cheers,

davebow commented 8 years ago

thanks for that. All fine now.