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

Update of a primary key field is not allowed.

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web2

  • via Unknown by 807581,
  • via Unknown by 843830,
  • Stack trace

    • 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(SQLStateManager.java:3736) at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updateRelationship(SQLStateManager.java:2774) at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updateObjectField(SQLStateManager.java:2658) at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.doUpdateField(SQLStateManager.java:3488) at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.prepareSetField(SQLStateManager.java:3563) at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.prepareSetField(SQLStateManager.java:3515) at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updateTrackedFields(SQLStateManager.java:3453) at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.makePersistent(SQLStateManager.java:790) at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.internalMakePersistent(PersistenceManagerImpl.java:1781) at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:794) at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper.makePersistent(PersistenceManagerWrapper.java:297) at BasketDetailBean_543373004_ConcreteImpl.ejbCreate(BasketDetailBean_543373004_ConcreteImpl.java:633)

    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

    We couldn't find other users who have seen this exception.