Ticket #129 (closed 总结: fixed)

Opened 14 years ago

Last modified 13 years ago

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 (last modified by yuanhuoqing) (diff)

报价后台剩余功能重构上线后发现一个问题,某些地区新增本地报价品牌报错提示:


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重新编译加强的。

Change History

comment:1 Changed 14 years ago by yuanhuoqing

  • Status changed from new to closed
  • Resolution set to fixed

comment:2 Changed 14 years ago by yuanhuoqing

  • Description modified (diff)
  • Summary changed from java.lang.RuntimeException: parameters count greater than limit! max: 100,提交的参数长度超过100的异常处理总结 to java.lang.RuntimeException: parameters count greater than limit! max: 100,提交的参数个数超过100的异常处理总结

comment:3 Changed 14 years ago by yuanhuoqing

  • Description modified (diff)
  • Summary changed from java.lang.RuntimeException: parameters count greater than limit! max: 100,提交的参数个数超过100的异常处理总结 to java.lang.RuntimeException: parameters count greater than limit! max: 100,提交的参数数目超过100的异常处理总结

comment:4 Changed 13 years ago by chenchongqi

  • Component changed from Snake to 报价库
Note: See TracTickets for help on using tickets.