`

S2SH常见异常,主键重复引发的异常,数据库字段长度引发的异常

 
阅读更多
S2SH常见异常,主键重复引发的异常,数据库字段长度引发的异常
在编码过程中我们可能会遇到各种异常信息 在此记录以备查阅 


仓促之际 不能全然顾及 如有遗漏及不当之处 万望大家指出



java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based!
org.hibernate.QueryParameterException: could not locate named parameter [参数名]无法找到命名参数
主键重复引发的异常
org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.DataException: Could not execute JDBC batch update
org.hibernate.exception.DataException: Could not execute JDBC batch update 
java.sql.BatchUpdateException: Data truncation: Data too long for column 'MEMBERTEL' at row 1

输入过长造成StringSet方法异常
ognl.MethodFailedException: Method "setPapers" failed for object com.lbw.member.bean.Member@93adaa [java.lang.NoSuchMethodException: setPapers([Ljava.lang.String;)]
java.lang.NoSuchMethodException: setPapers([Ljava.lang.String;)

sql语法错误引发的异常
org.hibernate.exception.SQLGrammarException: could not execute query
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'member0_.address' in 'field list'
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics