首页 > 代码库 > Java代码报错[收集整理]
Java代码报错[收集整理]
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 1Caused 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是否遗漏
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。