使用Ibatis 2.3.1.710,出现以下异常:
com.ibatis.common.beans.ProbeException: There is no READABLE property named 'newDate' in class 'com.myProject.common.vo.MyObject'
at com.ibatis.common.beans.ClassInfo.getGetterType(ClassInfo.java:431)
at com.ibatis.common.beans.GenericProbe.getClassPropertyTypeForGetter(GenericProbe.java:224)
at com.ibatis.common.beans.GenericProbe.getPropertyTypeForGetter(GenericProbe.java:153)
at com.ibatis.sqlmap.engine.mapping.parameter.InlineParameterMapParser.resolveTypeHandler(InlineParameterMapParser.java:229)
at com.ibatis.sqlmap.engine.mapping.parameter.InlineParameterMapParser.oldParseMapping(InlineParameterMapParser.java:161)
at com.ibatis.sqlmap.engine.mapping.parameter.InlineParameterMapParser.parseInlineParameterMap(InlineParameterMapParser.java:48)
at com.ibatis.sqlmap.engine.config.MappedStatementConfig.applyInlineParameterMap(MappedStatementConfig.java:189)
at com.ibatis.sqlmap.engine.config.MappedStatementConfig.setSqlForStatement(MappedStatementConfig.java:173)
at com.ibatis.sqlmap.engine.config.MappedStatementConfig.<init>(MappedStatementConfig.java:80)
at com.ibatis.sqlmap.engine.config.SqlMapConfiguration.newMappedStatementConfig(SqlMapConfiguration.java:159)
at com.ibatis.sqlmap.engine.builder.xml.SqlStatementParser.parseGeneralStatement(SqlStatementParser.java:73)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapParser$18.process(SqlMapParser.java:346)
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:
试图找出原因,我注意到我通过使setter返回对象而不是void来稍微修改了我的实体类,这能引起该stacktrace吗,为什么? :
public Date getNewDate() {
return newDate;
}
public MyObject setNewDate(Date newDate) {
this.newDate = newDate;
return this;
}