码迷,mamicode.com
首页 > 编程语言 > 详细

Java代码报错[收集整理]

时间:2014-08-18 14:18:02      阅读:261      评论:0      收藏:0      [点我收藏+]

标签: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是否遗漏

 

Java代码报错[收集整理],布布扣,bubuko.com

Java代码报错[收集整理]

标签:style   blog   color   java   使用   io   strong   文件   

原文地址:http://www.cnblogs.com/visec479/p/3919357.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!