target is null for setProperty(null, "name", [Ljava.lang.String;@ffc6ae)
2015-04-26 20:48
405 查看
如题 target is null for setProperty(null, "name", [Ljava.lang.String;@ffc6ae)
严重: Could not create and/or set value back on to object
Method "setProductType" failed for object net.epsshop.action.admin.ProductTypeAction@163bad4 - Class: ognl.OgnlRuntime
File: OgnlRuntime.java
Method: callAppropriateMethod
Line: 1265 - ognl/OgnlRuntime.java:1265:-1
ognl.MethodFailedException: Method "setProductType" failed for object net.epsshop.action.admin.ProductTypeAction@163bad4 [java.lang.NoSuchMethodException: net.epsshop.action.admin.ProductTypeAction.setProductType($Proxy39)]
警告: Error setting expression 'productType.name' with value '[Ljava.lang.String;@ffc6ae'
get和set方法都有
这个破问题困扰我一天,以前遇到过,又忘了。。。(哎,人老了记性不太好了)
解决:
将
private ProductType productType ;
改成
private ProductType productType = new ProductType();
//初始化(其实我到现在都郁闷,以前都是没有初始化怎么都没出错,有高手路过的,知道原因的请告诉在下,谢谢了!)
http://jeonkeen.iteye.com/blog/1303841
严重: Could not create and/or set value back on to object
Method "setProductType" failed for object net.epsshop.action.admin.ProductTypeAction@163bad4 - Class: ognl.OgnlRuntime
File: OgnlRuntime.java
Method: callAppropriateMethod
Line: 1265 - ognl/OgnlRuntime.java:1265:-1
ognl.MethodFailedException: Method "setProductType" failed for object net.epsshop.action.admin.ProductTypeAction@163bad4 [java.lang.NoSuchMethodException: net.epsshop.action.admin.ProductTypeAction.setProductType($Proxy39)]
警告: Error setting expression 'productType.name' with value '[Ljava.lang.String;@ffc6ae'
get和set方法都有
这个破问题困扰我一天,以前遇到过,又忘了。。。(哎,人老了记性不太好了)
解决:
将
private ProductType productType ;
改成
private ProductType productType = new ProductType();
//初始化(其实我到现在都郁闷,以前都是没有初始化怎么都没出错,有高手路过的,知道原因的请告诉在下,谢谢了!)
http://jeonkeen.iteye.com/blog/1303841
相关文章推荐
- 对于Name属性没有get/set方法引起的:target is null for setProperty(null, "x", [Ljava.lang.String;@1a48515)异常
- target is null for setProperty(null, "username", [Ljava.lang.String;@c06258)问题
- WEB开发错误收集(二) ognl.OgnlException: target is null for setProperty(null, "name", [Ljava.lang.String;@f6
- ognl.OgnlException: target is null for setProperty(null, "name", [Ljava.lang.String;@f6
- ognl.OgnlException: target is null for setProperty(null, "y", [Ljava.lang.String;@1d57c7)
- ognl.OgnlException: target is null for setProperty(null, "tkscName", [Ljava.lang.String;@1bf9980)
- Struts target is null for setProperty(null, "x", [Ljava.lang.String;@179da9f)
- Struts target is null for setProperty(null, "x", [Ljava.lang.String;@179da9f)
- ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@1a4
- Struts target is null for setProperty(null, "x", [Ljava.lang.String;@179da9f)以及图片实现提交造成出现重复提交的现象
- target is null for setProperty(null, "x", [Ljava.lang.String;@b0c40e)错误异常
- struts2 ognl.OgnlException: 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, "description", [Ljava.lang.String;@12069f2
- struts2 ognl.OgnlException: target is null for setProperty(null, "pageNO", [Ljava.lang.String;@c3bb57)
- target is null for setProperty(null, "name", [Ljava.lang.String;@696ece)
- target is null for setProperty(null, "x", [Ljava.lang.String;@b0c40e)错误异常
- ognl.OgnlException: target is null for setProperty(null, "offset", [Ljava.lang.String;@1667f3c) 解决方法
- 异常:target is null for setProperty(null, "x", [Ljava.lang.String;@1a48515)解决方法之一
- target is null for setProperty(null, "passwordHash", [Ljava.lang.String;@1535ac)