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

org.springframework.orm.jpa.JpaSystemException问题记录

时间:2018-01-11 16:19:01      阅读:1664      评论:0      收藏:0      [点我收藏+]

标签:generic   rds   logs   drive   sql   应该   数据   statement   frame   

最近在使用jpa的过程中出现了如下异常:


org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:333)
...
Caused by: org.hibernate.exception.GenericJDBCException: could not execute statement
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
...
... 74 common frames omitted
Caused by: java.sql.SQLException: ORA-14400: 插入的分区关键字未映射到任何分区

at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
...
</pre>

部分异常代码省略,上边的异常应该很容易看出问题,就是入库的数据超过了数据库已有分区的限制,增加数据库分区即可。
但在解决问题的过程中总结出如下两个要点:
1、看问题不能只片面的看个开头,或许答案就在最后。
2、项目中的日志尤其重要,debug看不出来的问题,有时候都打印在了日志中。

org.springframework.orm.jpa.JpaSystemException问题记录

标签:generic   rds   logs   drive   sql   应该   数据   statement   frame   

原文地址:https://www.cnblogs.com/tuzongxun/p/8267575.html

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