kodo.persistence.ArgumentException: Attempt to cast instance "Dog Binney costs 80.0 dollars. [tutorial.persistence.Dog]" to PersistenceCapable failed. Ensure that it has been enhanced. FailedObject: Dog Binney costs 80.0 dollars. [tutorial.persistence.Dog]

Oracle Community | 666705 | 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

    Netbeans Ant Task for Kodo Enhancer

    Oracle Community | 1 decade ago | 666705
    kodo.persistence.ArgumentException: Attempt to cast instance "Dog Binney costs 80.0 dollars. [tutorial.persistence.Dog]" to PersistenceCapable failed. Ensure that it has been enhanced. FailedObject: Dog Binney costs 80.0 dollars. [tutorial.persistence.Dog]
  2. 0

    kodo.persistence.ArgumentException: You cannot perform operation persist on...

    Oracle Community | 1 decade ago | 3004
    kodo.persistence.ArgumentException: You cannot perform operation persist on detached object "sofa.model.User@36e7a9". This operation only applies to managed objects. FailedObject: sofa.model.User@36e7a9

    Root Cause Analysis

    1. kodo.persistence.ArgumentException

      Attempt to cast instance "Dog Binney costs 80.0 dollars. [tutorial.persistence.Dog]" to PersistenceCapable failed. Ensure that it has been enhanced. FailedObject: Dog Binney costs 80.0 dollars. [tutorial.persistence.Dog]

      at kodo.kernel.BrokerImpl.assertPersistenceCapable()
    2. kodo.kernel
      DelegatingBroker.persist
      1. kodo.kernel.BrokerImpl.assertPersistenceCapable(BrokerImpl.java:5188)
      2. kodo.kernel.BrokerImpl.persist(BrokerImpl.java:2786)
      3. kodo.kernel.BrokerImpl.persist(BrokerImpl.java:2726)
      4. kodo.kernel.DelegatingBroker.persist(DelegatingBroker.java:1458)
      4 frames
    3. kodo.persistence
      EntityManagerImpl.persist
      1. kodo.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:605)
      1 frame
    4. tutorial.persistence
      SeedDatabase.main
      1. tutorial.persistence.SeedDatabase.seed(SeedDatabase.java:47)
      2. tutorial.persistence.SeedDatabase.main(SeedDatabase.java:59)
      2 frames