解决异常ognl.OgnlException: source is null for getProperty(null, "token")
2011-04-27 10:10
936 查看
异常如下
在Struts2配置文件里添加如下代码
2010-03-13 09:26:06,224 INFO [STDOUT] (http-0.0.0.0-8080-3) 09:26:06,223 WARN [OgnlValueStack] Error setting expression 'struts.token.name' with value '[Ljava.lang.String;@5cfe5cfe' ognl.OgnlException: source is null for getProperty(null, "token") at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2203) at ognl.ASTProperty.getValueBody(ASTProperty.java:114) ...........................
在Struts2配置文件里添加如下代码
<interceptor-ref name="params"> <param name="excludeParams">dojo/..*,struts.token,struts.token.name</param> </interceptor-ref>
相关文章推荐
- Struts2 设置List值时出错:ognl.OgnlException: source is null for getProperty(null, "0")
- ognl.OgnlException: source is null for getProperty(null, "0")
- root cause org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "XXX")
- struts2 ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@1a48515)异常原因
- org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "mil_id")
- Caused by: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "list")
- Caused by: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "id")
- ognl.OgnlException: target is null for setProperty(null, "offset", [Ljava.lang.String;@1667f3c) 解决方法
- ognl.OgnlException: target is null for setProperty异常解决
- ognl.OgnlException: target is null for setProperty(null, "x",)错误
- struts2 ognl.OgnlException: target is null for setProperty(null, "pageNO", [Ljava.lang.String;@c3bb57)
- ognl.OgnlException: target is null for setProperty(null,"XXXX"...)
- ognl.OgnlException: target is null for setProperty(null, "x",)错误
- ognl.OgnlException: target is null for setProperty(null, "name", [Ljava.lang.String;@f6
- ognl.OgnlException: target is null for setProperty(null, "XX", [Ljava.lang.String;@10f8ee4)解决
- ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@1a4
- 对于Name属性没有get/set方法引起的:target is null for setProperty(null, "x", [Ljava.lang.String;@1a48515)异常
- ognl.OgnlException: target is null for setProperty(null, "goodsSize", [Ljava.lang.String;@c3bb5。
- ognl.OgnlException: target is null for setProperty(null, "y", [Ljava.lang.St
- ognl.OgnlException: target is null for setProperty(null, "description", [Ljava.lang.String;@12069f2