com.sun.jdo.api.persistence.support.JDOUnsupportedOptionException: Update of a primary key field is not allowed.

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

    Update of a primary key field is not allowed?

    Oracle Community | 1 decade ago | 807581
    com.sun.jdo.api.persistence.support.JDOUnsupportedOptionException: Update of a primary key field is not allowed.

    Root Cause Analysis

    1. com.sun.jdo.api.persistence.support.JDOUnsupportedOptionException

      Update of a primary key field is not allowed.

      at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.assertPKUpdate()
    2. com.sun.jdo
      PersistenceManagerWrapper.makePersistent
      1. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.assertPKUpdate(SQLStateManager.java:3736)
      2. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updateRelationship(SQLStateManager.java:2774)
      3. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updateObjectField(SQLStateManager.java:2658)
      4. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.doUpdateField(SQLStateManager.java:3488)
      5. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.prepareSetField(SQLStateManager.java:3563)
      6. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.prepareSetField(SQLStateManager.java:3515)
      7. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updateTrackedFields(SQLStateManager.java:3453)
      8. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.makePersistent(SQLStateManager.java:790)
      9. com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.internalMakePersistent(PersistenceManagerImpl.java:1781)
      10. com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:794)
      11. com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper.makePersistent(PersistenceManagerWrapper.java:297)
      11 frames
    3. Unknown
      BasketDetailBean_543373004_ConcreteImpl.ejbCreate
      1. BasketDetailBean_543373004_ConcreteImpl.ejbCreate(BasketDetailBean_543373004_ConcreteImpl.java:633)
      1 frame