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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web306

  • via Oracle Community by 666705, 1 year ago
    "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
  • via openjpa-users by Adam Hardy, 1 year ago
    Encountered deleted object "org.apache.openjpa.enhance.org$permacode$patternrepo$domain$Market$pcsubclass-org.permacode.patternrepo.domain.Market-1" in persistent field "org.permacode.patternrepo.domain.TestResult.market" of managed object
  • via openjpa-users by padamstx, 9 months ago
    Attempt to assign id "0" to new instance "my.package.A-0" failed; there is already an object in the L1 cache with this id. You must delete this object (in a previous transaction or the current one) before reusing its id. This error can also occur
  • Stack trace

    • 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(ResponseImpl.java:195)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.