You can see that there is mismatch of the keys:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2006-02-24 20:03:59,641 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - preparing statement
2006-02-24 20:03:59,641 DEBUG [main] net.sf.hibernate.persister.EntityPersister - Dehydrating entity: [com.bmc.idm.cmplmgr.bo._common.result.ResultsetEntryImpl#1]
2006-02-24 20:03:59,641 DEBUG [main] net.sf.hibernate.type.StringType - binding 'ny name is result set Fri Feb 24 20:03:46 EET 2006' to parameter: 1
2006-02-24 20:03:59,641 DEBUG [main] net.sf.hibernate.type.BooleanType - binding 'true' to parameter: 2
2006-02-24 20:03:59,641 DEBUG [main] net.sf.hibernate.type.LongType - binding '1' to parameter: 3
2006-02-24 20:03:59,641 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - Adding to batch
2006-02-24 20:03:59,656 DEBUG [main] net.sf.hibernate.persister.EntityPersister - Inserting entity: [com.bmc.idm.cmplmgr.bo._common.ColumnImpl#2]
2006-02-24 20:03:59,656 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - Executing batch size: 1
2006-02-24 20:03:59,688 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - success of batch update unknown: 0
2006-02-24 20:03:59,688 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - done closing: 0 open PreparedStatements, 0 open ResultSets
2006-02-24 20:03:59,688 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - closing statement
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - about to open: 0 open PreparedStatements, 0 open ResultSets
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.SQL - insert into A_COLUMN (RESULT_SET_ENTRY_ID, name, FIELD_TYPE, RESPONSIVE_FIELD, DISPLAY_FIELD, VIEWER_FILTER, DISPLAY_FILTER, description, ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - preparing statement
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.persister.EntityPersister - Dehydrating entity: [com.bmc.idm.cmplmgr.bo._common.ColumnImpl#2]
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.LongType - binding '0' to parameter: 1
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.StringType - binding 'db col' to parameter: 2
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.BooleanType - binding 'true' to parameter: 4
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.BooleanType - binding 'true' to parameter: 5
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.BooleanType - binding 'false' to parameter: 6
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.BooleanType - binding 'false' to parameter: 7
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.StringType - binding 'description' to parameter: 8
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.type.LongType - binding '2' to parameter: 9
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - Adding to batch
2006-02-24 20:03:59,703 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - Executing batch size: 1
2006-02-24 20:03:59,781 DEBUG [main] net.sf.hibernate.util.JDBCExceptionReporter - SQL Exception
java.sql.BatchUpdateException: ORA-02291: integrity constraint (ABALDERM.FK786E2914B486C467) violated - parent key not found
at oracle.jdbc.dbaccess.DBError.throwBatchUpdateException(DBError.java:459)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:4210)
at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
at net.sf.hibernate.impl.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:54)
at net.sf.hibernate.impl.BatcherImpl.executeBatch(BatcherImpl.java:128)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at com.bmc.idm.cmplmgr.bo.backend.query.QueryTest.resultSetEntrySaveAndFetch(QueryTest.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:485)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
at org.testng.TestRunner.privateRun(TestRunner.java:614)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
at org.testng.SuiteRunner.run(SuiteRunner.java:147)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:86)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
2006-02-24 20:03:59,781 WARN [main] net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 2291, SQLState: 23000
2006-02-24 20:03:59,781 ERROR [main] net.sf.hibernate.util.JDBCExceptionReporter - ORA-02291: integrity constraint (ABALDERM.FK786E2914B486C467) violated - parent key not found
2006-02-24 20:03:59,797 WARN [main] net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 2291, SQLState: 23000
2006-02-24 20:03:59,797 ERROR [main] net.sf.hibernate.util.JDBCExceptionReporter - ORA-02291: integrity constraint (ABALDERM.FK786E2914B486C467) violated - parent key not found
2006-02-24 20:03:59,797 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - done closing: 0 open PreparedStatements, 0 open ResultSets
2006-02-24 20:03:59,797 DEBUG [main] net.sf.hibernate.impl.BatcherImpl - closing statement
2006-02-24 20:03:59,813 DEBUG [main] net.sf.hibernate.util.JDBCExceptionReporter - Could not execute JDBC batch update
java.sql.BatchUpdateException: ORA-02291: integrity constraint (ABALDERM.FK786E2914B486C467) violated - parent key not found
at oracle.jdbc.dbaccess.DBError.throwBatchUpdateException(DBError.java:459)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:4210)
at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
at net.sf.hibernate.impl.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:54)
at net.sf.hibernate.impl.BatcherImpl.executeBatch(BatcherImpl.java:128)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at com.bmc.idm.cmplmgr.bo.backend.query.QueryTest.resultSetEntrySaveAndFetch(QueryTest.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:485)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
at org.testng.TestRunner.privateRun(TestRunner.java:614)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
at org.testng.SuiteRunner.run(SuiteRunner.java:147)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:86)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
2006-02-24 20:03:59,813 WARN [main] net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 2291, SQLState: 23000
2006-02-24 20:03:59,813 ERROR [main] net.sf.hibernate.util.JDBCExceptionReporter - ORA-02291: integrity constraint (ABALDERM.FK786E2914B486C467) violated - parent key not found
2006-02-24 20:03:59,813 WARN [main] net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 2291, SQLState: 23000
2006-02-24 20:03:59,813 ERROR [main] net.sf.hibernate.util.JDBCExceptionReporter - ORA-02291: integrity constraint (ABALDERM.FK786E2914B486C467) violated - parent key not found
2006-02-24 20:03:59,828 ERROR [main] net.sf.hibernate.impl.SessionImpl - Could not synchronize database state with session
_________________ Avishay Balderman
|