异常记录

异常总结:
   1)Caused by: java.sql.SQLException: Table './qd_gp_test/e_fund_paper_item' is marked as crashed and should be repaired
   标记e_fund_paper_item 表坠毁,需要修复    原因是:没有找到发现好了  但是根据网上记录说是mysql由于断电引起的索引异常

   当前异常原因是数据库异常引起的  所以处理当前异常时对数据表的处理。

   2)com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '181164579740' for key 'PRIMARY'
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    问题原因是设置id  采用的是8位数字  导致的主键id重复导致  后解决采用uuid  当前异常说的就是主键重复导致的。

posted @ 2018-09-29 15:57  liuwd  阅读(227)  评论(0编辑  收藏  举报