Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DBUnit ...looading data to database getting error of integrity constraint

pravin karne
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends ,

I got following error whrn i load my dataset file to database with


error was:

error message="ORA-02292: integrity constraint (SH_USER.SH_CMPG_MA_CMPG_DERV_ASSOC_FK1) violated - child record found
" type="java.sql.SQLException">java.sql.SQLException: ORA-02292: integrity constraint (SH_USER.SH_CMPG_MA_CMPG_DERV_ASSOC_FK1) violated - child record found

at oracle.jdbc.driver.DatabaseError.throwSqlException(
at oracle.jdbc.driver.T4CTTIoer.processError(
at oracle.jdbc.driver.T4CTTIoer.processError(
at oracle.jdbc.driver.T4C8Oall.receive(
at oracle.jdbc.driver.T4CStatement.doOall8(
at oracle.jdbc.driver.T4CStatement.executeForRows(
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
at oracle.jdbc.driver.OracleStatement.executeInternal(
at oracle.jdbc.driver.OracleStatement.execute(
at org.dbunit.database.statement.SimpleStatement.executeBatch(
at org.dbunit.operation.DeleteAllOperation.execute(
at org.dbunit.operation.CompositeOperation.execute(
at com.stratoshear.runtime.pcs.GetGenericAdsTest.handleSetUpOperation(Unknown Source)
at com.stratoshear.runtime.pcs.GetGenericAdsTest.loatDB(Unknown Source)

any body help me in resolving this error...Please
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic