org.springframework.orm.jpa.JpaSystemException问题记录
2018-01-11 11:29
639 查看
最近在使用jpa的过程中出现了如下异常:
部分异常代码省略,上边的异常应该很容易看出问题,就是入库的数据超过了数据库已有分区的限制,增加数据库分区即可。
但在解决问题的过程中总结出如下两个要点:
1、看问题不能只片面的看个开头,或许答案就在最后。
2、项目中的日志尤其重要,debug看不出来的问题,有时候都打印在了日志中。
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看不出来的问题,有时候都打印在了日志中。
相关文章推荐
- 错误:org.springframework.orm.jpa.JpaSystemException: could not deserialize;
- org.springframework.data.redis.RedisSystemException: Unknown redis exception; nested exception is ja
- org.springframework.validation.BindException问题解决
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- org.springframework.data.redis.RedisSystemException: Unknown redis exception; nested exception is ja
- (转)问题java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderL
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 问题原因。
- SSH项目问题【六】java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- 【解决】SSH问题(四)Java.Lang.ClassNotFoundException: Org.Springframework.Transaction.TransactionException
- 解决SSM,java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener 问题
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener问题解决
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- ognl.MethodFailedException: Method "setId" failed for object Itemer/org.springframework.orm.hibernat
- org.springframework.dao.InvalidDataAccessApiUsageException问题解决
- jpa语句报 org.springframework.dao.InvalidDataAccessApiUsageException: Parameter with that position [2] did not exist; nested exception is java.lang.IllegalArgumentException: Parameter with that position
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- org.springframework.dao.DuplicateKeyException: 问题
- 关于SpringMVC中org.springframework.beans.factory.BeanCreationException: Could not autowire field:的问题的解决