java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Integer auto-increment fields
    via by 3004,
    • java.lang.ClassCastException at kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:563) at com.correlat.intranet.projectmanagement.PortfolioTest.testFlush(PortfolioTest.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(Unknown Source) at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(UnknownSource) at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(UnknownSource) at com.intellij.rt.execution.junit2.JUnitStarter.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(Unknown Source) Caused by: java.lang.ClassCastException at com.correlat.intranet.projectmanagement.Portfolio.jdoReplaceField(Portfolio.java) at kodo.runtime.StateManagerImpl.replaceField(StateManagerImpl.java:2771) at kodo.runtime.StateManagerImpl.storeObjectField(StateManagerImpl.java:2272) at kodo.runtime.StateManagerImpl.storeObject(StateManagerImpl.java:2252) at kodo.jdbc.meta.ValueFieldMapping.setAutoIncrementValue(ValueFieldMapping.java:346) at kodo.jdbc.meta.ClassMapping.setAutoIncrementValue(ClassMapping.java:381) at kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:137) at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:357) at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:153) at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:72) at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:507) at kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:158) at kodo.datacache.DataCacheStoreManager.flush(DataCacheStoreManager.java:412) at kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:794) at kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:550) ... 13 more
    No Bugmate found.