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

Oracle Community | 3004 | 1 decade ago
  1. 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
  2. 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

    Root Cause Analysis

    1. 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

      at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.update()
    2. com.solarmetric.kodo
      PersistenceManagerImpl.commit
      1. com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.update(ClassMapping.java:583)
      2. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:501)
      3. com.solarmetric.kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:730)
      4. com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:455)
      4 frames