jetty提交form表单org.eclipse.jetty.http.BadMessageException:400:Unable.to.parse.form.conte
(2020-07-06 18:15:02)分类: 服务器 |
org.eclipse.jetty.http.BadMessageException: 400: Unable
to parse form content
at
org.eclipse.jetty.server.Request.getParameters(Request.
at
org.eclipse.jetty.server.Request.getParameter(Request.
at
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.
at
org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.
at
org.springframework.boot.web.support.ErrorPageFilter.access$000(ErrorPageFilter.
at
org.springframework.boot.web.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.
at
org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.
at
org.eclipse.jetty.server.Server.handle(Server.
at
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.
at
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.
at
org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.
at
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.
at
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.
at
Caused by:
java.lang.IllegalStateException: Form too large: 389557 >
200000
at
org.eclipse.jetty.server.Request.extractFormParameters(Request.
at
org.eclipse.jetty.server.Request.extractContentParameters(Request.
at
org.eclipse.jetty.server.Request.getParameters(Request.
... 44 common frames omitted
##解除文件上传大小的限制
server.tomcat.max-http-post-size=-1
spring.http.multipart.max-file-size=-1
spring.http.multipart.max-request-size=-1
#只需要添加上他就可以解决
server.jetty.max-http-post-size=500000