ognl.MethodFailedException: Method "setId" failed for object

log4jStrutsJavaWeb 

ognl.MethodFailedException: Method "setId" failed for object com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)]

解决办法 :

just change the logging level. 

log4j.properties: 
# Struts OgnlUtil issues unimportant warnings 
log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error 
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=error

相关推荐