java.sql.BatchUpdateException: ORA-02291: integrity constraint
2009-08-31 12:07
1031 查看
錯誤日志:
錯誤分析:
从字面来看,此错误为外键约束错误,经过检查发现,某字段在数据库中设置外键与Hibernate中引用的表对象不同而导致错误.
[31 12:02:03,906 WARN ] [Thread-11] util.JDBCExceptionReporter - SQL Error: 2291, SQLState: 23000 2009-8-31 12:02:04 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1108 严重: >>org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update >>org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update [SQL: 2291, 23000] >>java.sql.BatchUpdateException: ORA-02291: integrity constraint (SGVD.TFACTCANCELLI_FK61247830083984) violated - parent key not found >> >> at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:342) >> at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10656) >> at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) >> at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) >> at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) >>...
錯誤分析:
从字面来看,此错误为外键约束错误,经过检查发现,某字段在数据库中设置外键与Hibernate中引用的表对象不同而导致错误.
相关文章推荐
- Caused by:java.sql.BatchUpdateException:ORA-02291
- java.sql.SQLIntegrityConstraintViolationException: ORA-02291
- java.sql.BatchUpdateException: ORA-00001: unique constraint (IEVSP.PK_C_CSERVICES) violated
- java.sql.SQLException: ORA-02291: integrity constraint violated - par
- Caused by:java.sql.BatchUpdateException:ORA-02291
- 系统提示java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件
- Caused by: java.sql.BatchUpdateException: ORA-00001: 违反唯一约束条件
- java.sql.BatchUpdateException: ORA-12899
- oracle Caused by: java.sql.BatchUpdateException: ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值
- java.sql.BatchUpdateException: ORA-01031: 权限不足
- Caused by: java.sql.BatchUpdateException: ORA-01438: 值大于为此列指定的允许精度如何解决
- java.sql.SQLIntegrityConstraintViolationException: ORA-01400: 无法将 NULL 插入 (表)
- Could not execute JDBC batch update : java.sql.BatchUpdateException: ORA-00926: 缺失 VALUES 关键字
- Caused by: java.sql.BatchUpdateException: ORA-01461: can bind a LONG value only for insert into a LO
- java.sql.BatchUpdateException: ORA-02290: check...
- ORA-02291: integrity constraint (SYSTEM.FK1170E5C5328E4352) violated 解决办法
- Caused by: java.sql.BatchUpdateException: Transaction error, need to rollback. errno:1205 Lock wait timeout exceeded; try restarting transaction
- Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for column 'JLFSM' at row 1
- java.sql.BatchUpdateException
- Caused by: java.sql.BatchUpdateException: