MyFaces:超出每个请求允许的最大参数

时间:2013-01-28 15:24:10

标签: jsf primefaces request websphere myfaces

我参与的应用程序被部署到测试服务器(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

1 个答案:

答案 0 :(得分:0)

感谢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