struts2的错误总结-3

严重: Servlet.service() for servlet default threw exception
java.lang.NullPointerException
at com.ruangao.framework.data.biz.MoneyPayList$$BulkBeanByCGLIB$$1e0154b6.setPropertyValues(<generated>)
at com.ibatis.sqlmap.engine.accessplan.EnhancedPropertyAccessPlan.setProperties(EnhancedPropertyAccessPlan.java:33)
at com.ibatis.sqlmap.engine.exchange.JavaBeanDataExchange.setData(JavaBeanDataExchange.java:112)
at com.ibatis.sqlmap.engine.mapping.result.BasicResultMap.setResultObjectValues(BasicResultMap.java:373)
at com.ibatis.sqlmap.engine.mapping.statement.RowHandlerCallback.handleResultObject(RowHandlerCallback.java:64)
at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:382)
除了网上找的http://blog.csdn.net/lichengxian/article/details/5639171
还发现是自己在resultMap里面定义的字段和数据库不一致



2.there is no writable 'Id' in the ......发现字段不对应,原来是Id在xml(ibatis的配置)里面的定义是id

3.no result input 但是配置是有的,数据格式不对应,比如时间类型。

你可能感兴趣的:(struts2)