org.apache.openjpa.persistence.ArgumentException: Encountered new object "com.psi.vida.platform.entity.pojo.Account-com.psi.vida.platform.entity.pojo.Account-1010960" in persistent field "com.psi.vida.platform.entity.pojo.Application.account" of managed object "com.psi.vida.platform.entity.pojo.Application-com.psi.vida.platform.entity.pojo.Application-1010440" during attach. However, this field does not allow cascade attach. You cannot attach a reference to a new object without cascading. FailedObject: com.psi.vida.platform.entity.pojo.Account@537935

Oracle Community | 666705 | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Kodo JPA 4.1.2 Bi-directional Cascade

    Oracle Community | 10 years ago | 666705
    org.apache.openjpa.persistence.ArgumentException: Encountered new object "com.psi.vida.platform.entity.pojo.Account-com.psi.vida.platform.entity.pojo.Account-1010960" in persistent field "com.psi.vida.platform.entity.pojo.Application.account" of managed object "com.psi.vida.platform.entity.pojo.Application-com.psi.vida.platform.entity.pojo.Application-1010440" during attach. However, this field does not allow cascade attach. You cannot attach a reference to a new object without cascading. FailedObject: com.psi.vida.platform.entity.pojo.Account@537935

    Root Cause Analysis

    1. org.apache.openjpa.persistence.ArgumentException

      Encountered new object "com.psi.vida.platform.entity.pojo.Account-com.psi.vida.platform.entity.pojo.Account-1010960" in persistent field "com.psi.vida.platform.entity.pojo.Application.account" of managed object "com.psi.vida.platform.entity.pojo.Application-com.psi.vida.platform.entity.pojo.Application-1010440" during attach. However, this field does not allow cascade attach. You cannot attach a reference to a new object without cascading. FailedObject: com.psi.vida.platform.entity.pojo.Account@537935

      at weblogic.rjvm.ResponseImpl.unmarshalReturn()
    2. weblogic.rjvm
      ResponseImpl.unmarshalReturn
      1. weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:195)
      1 frame