我的面孔:超过每个请求允许的最大参数



我参与的应用程序被部署到测试服务器(WebSphere 7)中,我们从那里得到了以前从未见过的错误:

这是关于超出每个请求允许的最大参数数的消息,另外写入错误:

28.01.2013 15:51:38 SEVERE exceeding maximum Paramaters allowed per request -> 1000 ,current parameterSize-> 1000 cannot add more. 
28.01.2013 15:51:38 SEVERE An exception occurred 
javax.faces.FacesException: java.lang.IllegalArgumentException
org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:191)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)

我从未见过用于配置最大参数计数的参数,也没有在 http://myfaces.apache.org/core20/myfaces-impl/webconfig.html 中找到它。那么,这个parameterSize参数是什么,我可以在哪里配置它?

该应用程序作为EAR嵌入,使用MyFaces 2.0.7和PrimeFaces 3.4

感谢BalusC的快速响应,通过异常来自 MyFaces 类,它是 WebSphere 设置

com.ibm.ws.webcontainer.maxParamPerRequest 
You can use this property to change the maximum number of parameters allowed in your inbound requests, based on your applications and environment. The maximum number of parameters allowed per inbound request (GET or POST) defaults to 10000. 

来源: http://www-01.ibm.com/support/docview.wss?uid=swg21592923

相关内容

  • 没有找到相关文章

最新更新