com.solarmetric.kodo.runtime.FatalDataStoreException: com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (10, 10, 'KODO')] [PRE=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (?, ?, ?)] ORA-02291: integrity constraint (CCLJDO.ATTRIBUTE_FK) violated - parent key not found [code=2291;state=23000] NestedThrowables: com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (10, 10, 'KODO')] [PRE=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (?, ?, ?)] ORA-02291: integrity constraint (CCLJDO.ATTRIBUTE_FK) violated - parent key not found

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

    Persistence by reachability with FK in PK

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.kodo.runtime.FatalDataStoreException: com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (10, 10, 'KODO')] [PRE=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (?, ?, ?)] ORA-02291: integrity constraint (CCLJDO.ATTRIBUTE_FK) violated - parent key not found [code=2291;state=23000] NestedThrowables: com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (10, 10, 'KODO')] [PRE=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (?, ?, ?)] ORA-02291: integrity constraint (CCLJDO.ATTRIBUTE_FK) violated - parent key not found
  2. 0

    Problem(s) with Kodo 2.5.0 on Oracle 9.0.1

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.kodo.runtime.FatalDataStoreException: A null version column value was found for type "wh.jdotest.BeispielKlasse1". Ensure that version columns get initialized to some numerical value. NestedThrowables: null

    Root Cause Analysis

    1. com.solarmetric.kodo.runtime.FatalDataStoreException

      com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (10, 10, 'KODO')] [PRE=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (?, ?, ?)] ORA-02291: integrity constraint (CCLJDO.ATTRIBUTE_FK) violated - parent key not found [code=2291;state=23000] NestedThrowables: com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (10, 10, 'KODO')] [PRE=INSERT INTO ATTRIBUTE(CLASS_ID, TYPE_ID, VALUE) VALUES (?, ?, ?)] ORA-02291: integrity constraint (CCLJDO.ATTRIBUTE_FK) violated - parent key not found

      at com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal()
    2. com.solarmetric.kodo
      PersistenceManagerImpl.commit
      1. com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLExceptions.java:58)
      2. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:559)
      3. com.solarmetric.kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:697)
      4. com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:422)
      4 frames