org.firebirdsql.gds.GDSException: violation of PRIMARY or UNIQUE KEY constraint "PK_PERSON" on table "PERSON

Oracle Community | 3004 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to insert a new record to table with foreign key

    Oracle Community | 1 decade ago | 3004
    org.firebirdsql.gds.GDSException: violation of PRIMARY or UNIQUE KEY constraint "PK_PERSON" on table "PERSON

    1 unregistered visitors

    Root Cause Analysis

    1. org.firebirdsql.gds.GDSException

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

      at org.firebirdsql.jgds.GDS_Impl.readStatusVector()
    2. org.firebirdsql.jgds
      GDS_Impl.isc_dsql_execute2
      1. org.firebirdsql.jgds.GDS_Impl.readStatusVector(GDS_Impl.java:1683)
      2. org.firebirdsql.jgds.GDS_Impl.receiveResponse(GDS_Impl.java:1636)
      3. org.firebirdsql.jgds.GDS_Impl.isc_dsql_execute2(GDS_Impl.java:865)
      3 frames
    3. Jaybird
      FBPreparedStatement.executeUpdate
      1. org.firebirdsql.jca.FBManagedConnection.executeStatement(FBManagedConnection.java:782)
      2. org.firebirdsql.jdbc.FBConnection.executeStatement(FBConnection.java:1072)
      3. org.firebirdsql.jdbc.FBPreparedStatement.internalExecute(FBPreparedStatement.java:420)
      4. org.firebirdsql.jdbc.FBPreparedStatement.executeUpdate(FBPreparedStatement.java:136)
      4 frames
    4. com.solarmetric.datasource
      PreparedStatementWrapper.executeUpdate
      1. com.solarmetric.datasource.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:111)
      1 frame
    5. com.solarmetric.kodo
      PersistenceManagerImpl.commit
      1. com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedStatementNonBatch(SQLExecutionManagerImpl.java:542)
      2. com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedStatement(SQLExecutionManagerImpl.java:511)
      3. com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeInternal(SQLExecutionManagerImpl.java:405)
      4. com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.flush(SQLExecutionManagerImpl.java:272)
      5. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:411)
      6. com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:575)
      7. com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:438)
      7 frames
    6. reversetutorial
      Finder.main
      1. reversetutorial.Finder.createData(Finder.java:74)
      2. reversetutorial.Finder.main(Finder.java:141)
      2 frames