您的位置:首页 > 编程语言 > Java开发

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

2018-01-11 11:29 639 查看
最近在使用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)
...


部分异常代码省略,上边的异常应该很容易看出问题,就是入库的数据超过了数据库已有分区的限制,增加数据库分区即可。

但在解决问题的过程中总结出如下两个要点:

1、看问题不能只片面的看个开头,或许答案就在最后。

2、项目中的日志尤其重要,debug看不出来的问题,有时候都打印在了日志中。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐