提示: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    就可以解决

你可能感兴趣的:(java,apache,thread,tomcat,log4j)