java.lang.ClassCastException: be.li3.persistence.jdo.id.Li3Id

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

    Mapping problem

    Oracle Community | 1 decade ago | 3004
    java.lang.ClassCastException: be.li3.persistence.jdo.id.Li3Id

    Root Cause Analysis

    1. java.lang.ClassCastException

      be.li3.persistence.jdo.id.Li3Id

      at kodo.jdbc.sql.AbstractRow.flushJoinValues()
    2. kodo.jdbc.sql
      AbstractRow.setPrimaryKey
      1. kodo.jdbc.sql.AbstractRow.flushJoinValues(AbstractRow.java:190)
      2. kodo.jdbc.sql.AbstractRow.setPrimaryKey(AbstractRow.java:92)
      2 frames
    3. kodo.jdbc.runtime
      JDBCStoreManager.flush
      1. kodo.jdbc.runtime.VRow.generateSQL(VRow.java:61)
      2. kodo.jdbc.runtime.RowImpl.getSQL(RowImpl.java:58)
      3. kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:87)
      4. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:361)
      5. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:155)
      6. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:73)
      7. kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:588)
      7 frames
    4. kodo.runtime
      PersistenceManagerImpl.commit
      1. kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:969)
      2. kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:814)
      3. kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
      4. kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:543)
      4 frames
    5. be.li3.persistence
      TestTables.testResourceTemplate
      1. be.li3.persistence.jdo.DbSession.store(DbSession.java:149)
      2. be.li3.persistence.jdo.dao.TestTables.testResourceTemplate(TestTables.java:229)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      8 frames
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
      3 frames