org.firebirdsql.jdbc.FBSQLException: GDS Exception. violation of PRIMARY or UNIQUE KEY constraint "PK_PERSON" on table "PERSON"

Oracle Community | 3004 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to insert a new record to table with foreign key

    Oracle Community | 1 decade ago | 3004
    org.firebirdsql.jdbc.FBSQLException: GDS Exception. violation of PRIMARY or UNIQUE KEY constraint "PK_PERSON" on table "PERSON"

    Root Cause Analysis

    1. org.firebirdsql.jdbc.FBSQLException

      GDS Exception. violation of PRIMARY or UNIQUE KEY constraint "PK_PERSON" on table "PERSON"

      at org.firebirdsql.jdbc.FBPreparedStatement.internalExecute()
    2. Jaybird
      FBPreparedStatement.executeUpdate
      1. org.firebirdsql.jdbc.FBPreparedStatement.internalExecute(FBPreparedStatement.java:425)
      2. org.firebirdsql.jdbc.FBPreparedStatement.executeUpdate(FBPreparedStatement.java:136)
      2 frames
    3. com.solarmetric.datasource
      PreparedStatementWrapper.executeUpdate
      1. com.solarmetric.datasource.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:111)
      1 frame
    4. com.solarmetric.kodo
      SQLExecutionManagerImpl.executePreparedStatementNonBatch
      1. com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedStatementNonBatch(SQLExecutionManagerImpl.java:542)
      1 frame