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

简介:

最近在使用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看不出来的问题,有时候都打印在了日志中。
目录
相关文章
|
Java Maven
程序包org.springframework.transaction.annotation不存在
整合ssm报:程序包org.springframework.transaction.annotation不存在 使用注解: @Transactional 之后,就一直报不存在 最终找到原因是:maven依赖 spring-tx版本问题,换个版本就OK
1354 0
程序包org.springframework.transaction.annotation不存在
|
2天前
|
Java 数据库连接
错误org.hibernate.AnnotationException: No identifier specified for entity
请根据你的实际情况,将实体类中的字段和注解进行适当的调整,以确保每个实体类都有一个明确定义的标识符(主键)。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
5 0
|
4月前
|
Java
SpringBoot注入出现@org.springframework.beans.factory.annotation.Autowired(required=true)
SpringBoot注入出现@org.springframework.beans.factory.annotation.Autowired(required=true)
32 0
|
6月前
|
Java 微服务 Spring
【Java异常】Spring boot启动失败@org.springframework.beans.factory.annotation.Autowired(required=true)
【Java异常】Spring boot启动失败@org.springframework.beans.factory.annotation.Autowired(required=true)
51 0
|
3月前
解决The injection point has the following annotations:@org.springframework.beans.factory.annotation错误~
解决The injection point has the following annotations:@org.springframework.beans.factory.annotation错误~
172 0
|
9月前
No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail
No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail
109 1
|
开发框架 Java Spring
Spring AOP异常:Error creating bean with name ‘org.springframework.aop.aspectj.
Spring AOP异常:Error creating bean with name ‘org.springframework.aop.aspectj.
|
关系型数据库 Java 数据库
Binding to target org.springframework.boot.autoconfigure.jdbc.DataSourceProperties@46c3a14d failed:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} p.p2 {margin: 0.
4514 0