kodo.util.UserException: The given instance of type "peacetech.nci.cs.jdo.Modification" and id "0;0" is not managed by this PersistenceManager. FailedObject:Modification(contractId = 0, modificationId = 0)

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

    New instances reacheable from detached instance are not persisted on attach

    Oracle Community | 1 decade ago | 3004
    kodo.util.UserException: The given instance of type "peacetech.nci.cs.jdo.Modification" and id "0;0" is not managed by this PersistenceManager. FailedObject:Modification(contractId = 0, modificationId = 0)
  2. 0

    Cannot attach detached object

    Oracle Community | 1 decade ago | 3004
    kodo.util.UserException: An object with oid "416.0" already exists in this PersistenceManager; another cannot be persisted. FailedObject:com.lehman.clientseg.data.staticdata.Currency@27538

    Root Cause Analysis

    1. kodo.util.UserException

      The given instance of type "peacetech.nci.cs.jdo.Modification" and id "0;0" is not managed by this PersistenceManager. FailedObject:Modification(contractId = 0, modificationId = 0)

      at kodo.runtime.PersistenceManagerImpl.assertManaged()
    2. kodo.runtime
      PersistenceManagerImpl.attach
      1. kodo.runtime.PersistenceManagerImpl.assertManaged(PersistenceManagerImpl.java:3002)
      2. kodo.runtime.PersistenceManagerImpl.getObjectId(PersistenceManagerImpl.java:1105)
      3. kodo.runtime.AttachManager.attach(AttachManager.java:182)
      4. kodo.runtime.AttachManager.attachField(AttachManager.java:382)
      5. kodo.runtime.AttachManager.attach(AttachManager.java:247)
      6. kodo.runtime.AttachManager.attach(AttachManager.java:55)
      7. kodo.runtime.PersistenceManagerImpl.attach(PersistenceManagerImpl.java:2894)
      7 frames
    3. peacetech.nci.cs
      LoadData.main
      1. peacetech.nci.cs.LoadData.detachTest(LoadData.java:270)
      2. peacetech.nci.cs.LoadData.main(LoadData.java:285)
      2 frames
    4. 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:324)
      4 frames
    5. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
      1 frame