Ticket #129 (new 总结) — at Initial Version
java.lang.RuntimeException: parameters count greater than limit! max: 100,提交的参数长度超过100的异常处理总结
| Reported by: | yuanhuoqing | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2012报价库5.0 |
| Component: | 报价库 | Version: | 报价库5.0 |
| Keywords: | 参数长度 | Cc: | |
| Due Date: | 10/10/2012 |
Description
报价后台剩余功能重构上线后发现一个问题,某些地区新增本地报价品牌报错提示:
java.lang.RuntimeException: parameters count greater than limit! max: 100 at com.caucho.server.connection.Form.parsePostData(Unknown Source) at com.caucho.server.connection.AbstractHttpRequest.parseQuery(AbstractHttpRequest.java:2070) at com.caucho.server.connection.AbstractHttpRequest.getParameterValues(AbstractHttpRequest.java:1996) at com.caucho.server.connection.AbstractHttpRequest.getParameter(AbstractHttpRequest.java:2006) at cn.com.pconline.core.price.admin.web.controller.BrandController.saveBrand(BrandController.java:414) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:421) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:136)
这个错误提示是提交的参数长度超过100,对比了测试环境不会报错,初步怀疑线上的resin的配置做了限制?咨询了下林浩,果真是,线上的resin.jar是他们重新编译加强的,在com.caucho.server.connection.Form.java加了参数长度不能超过100的限制,网络那边为了升级方便作了重新编译做了加强的,林浩重新修改编译后问题解决。
总结:以后遇到类似这种参数超过长度的问题首先考虑resin.jar包的问题,网络那边为了升级方便都会对resin.jar重新编译加强的。
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)