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'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值