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是否遗漏
Java代码报错[收集整理]
时间: 2024-10-21 03:36:48