标签:style blog color java 使用 io strong 文件
1. com.ibatis.common.jdbc.exception.NestedSQLException:
com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/visec/fileIssue/domain/fileIssue.xml. --- The error occurred while applying a parameter map. --- Check the fileIssue.doInsertUploadFile-InlineParameterMap. --- Check the statement (update failed). --- Cause: java.sql.SQLException: Column count doesn‘t match value count at row 1 Caused by: java.sql.SQLException: Column count doesn‘t match value count at row 1 at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:72) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:230) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:57) at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:34) at com.talent.tdp.base.dao.IbatisSqlMapTemplate.insert(IbatisSqlMapTemplate.java:87) at com.visec.fileIssue.action.FileIssueAction.doInsert(FileIssueAction.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
对于com.ibatis.common.jdbc.exception.NestedSQLException:我们在使用ibatis的时候偶尔会出现,这是我们不小心产生的,仔细查看下就会知道
Column count doesn‘t match value count at row 1 key和value是无法完整匹配,不难察觉要查看我们配置的XML文件 看对于德Value是否遗漏
标签:style blog color java 使用 io strong 文件
原文地址:http://www.cnblogs.com/visec479/p/3919357.html