0

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

4

1 回答 1

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

于 2013-01-28T15:58:09.437 回答