首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

揭示:WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Error setting value ogn

2012-11-04 
提示:WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Errorsetting value ogn提示:WARN [com.open

提示:WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Error setting value ogn

提示:WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Error setting value
ognl.OgnlException: source is null for getProperty(null, "book")
??????? at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1638)
??????? at ognl.ASTProperty.getValueBody(ASTProperty.java:92)
??????? at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
??????? at ognl.SimpleNode.getValue(SimpleNode.java:210)
??????? at ognl.ASTChain.setValueBody(ASTChain.java:168)
??????? at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
??????? at ognl.SimpleNode.setValue(SimpleNode.java:246)
??????? at ognl.Ognl.setValue(Ognl.java:476)
??????? at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)
??????? at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)
??????? at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)
??????? at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)
??????? at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)
??????? at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
??????? at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
??????? at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
??????? at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
??????? at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
??????? at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.
java:76)
??????? at com.sterning.commons.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:27)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
??????? at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
??????? at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
??????? at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
??????? at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
??????? at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
??????? at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
??????? at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
??????? at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
??????? at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
??????? at java.lang.Thread.run(Thread.java:619)

?

解决方法:

打开log4j.properties 加入:

log4j.logger.com.opensymphony.xwork2=ERROR

?

1 楼 liuyuhua0066 2011-12-19   治标不治本!

热点排行