Struts2 error, extremely depressed
Below I will only post the key error message out, posts more is useless;
Ognl. Methodfailedexception:method "Setaslimbscause" failed for object com.zhi.ds.pojo.classess@1192e9 [ Java.lang.NoSuchMethodException:setAsLimbsCause ([Ljava.lang.String;)]
At OGNL. Ognlruntime.callappropriatemethod (ognlruntime.java:823)
Java.lang.NoSuchMethodException:setAsLimbsCause ([Ljava.lang.String;)
At OGNL. Ognlruntime.callappropriatemethod (ognlruntime.java:810)
This is I on a page after filling in the information, click Submit Save error;
The error message above is really confusing. That method is clearly defined in the Pojo, but hard to say that there is no such method. And
Setaslimbscause ([Ljava.lang.String;) The parameter in this place, defined by the short type, can be displayed as a string, plus an L in front of Java. There are a lot of errors in the field, and all of them are in a wrong mode. Extremely depressed .....
Workaround:
Parameter types do not match. Pojo all use string, in the processing class to change the type is not so much trouble