javax.persistence.PersistenceException

Exception [EclipseLink-7251] (Eclipse Persist ence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException [junit] Exception Description: The attribute [AL_ID] of class [oracle.documaker.config.jpa.ALConfigContext] is mapped to a primary key column in the database. Updates are not allowed. [junit] at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush (EntityManagerImpl.java:744) [junit] at org.eclipse.persistence.internal.jpa.EJBQueryImpl.performPre QueryFlush(EJBQueryImpl.java:1237) [junit] at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpd ate(EJBQueryImpl.java:532) [junit] at oracle.documaker.config.jpa.JPAConfiguration.removeJPAListFo r(JPAConfiguration.java:600) [junit] at oracle.documaker.config.jpa.JPAConfiguration.removePropertyL ist(JPAConfiguration.java:456) [junit] at oracle.documaker.junit.JPAConfiguration_Oracle_Test.JPAConfi guration_Oracle_Test_testSetPropertyList(JPAConfiguration_Or acle_Test.java:354) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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 web3146

  • [oracle.documaker.config.jpa.ALConfigContext] is mapped to a primary key column in the database. Updates are not allowed. [junit] at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush (EntityManagerImpl.java:744) [junit] at
  • [oracle.documaker.config.jpa.ALConfigContext] is mapped to a primary key column in the database. Updates are not allowed. [junit] at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush (EntityManagerImpl.java:744) [junit] at
  • Exception [EclipseLink-7251] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.ValidationException Exception Description: The attribute [groupId] of class [entity.GroupTablePK] is mapped to a primary key column in the database. Updates are not allowed.
  • Stack trace

    • javax.persistence.PersistenceException: Exception [EclipseLink-7251] (Eclipse Persist ence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException [junit] Exception Description: The attribute [AL_ID] of class [oracle.documaker.config.jpa.ALConfigContext] is mapped to a primary key column in the database. Updates are not allowed. [junit] at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush (EntityManagerImpl.java:744) [junit] at org.eclipse.persistence.internal.jpa.EJBQueryImpl.performPre QueryFlush(EJBQueryImpl.java:1237) [junit] at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpd ate(EJBQueryImpl.java:532) [junit] at oracle.documaker.config.jpa.JPAConfiguration.removeJPAListFo r(JPAConfiguration.java:600) [junit] at oracle.documaker.config.jpa.JPAConfiguration.removePropertyL ist(JPAConfiguration.java:456) [junit] at oracle.documaker.junit.JPAConfiguration_Oracle_Test.JPAConfi guration_Oracle_Test_testSetPropertyList(JPAConfiguration_Or acle_Test.java:354) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.lang.reflect.Method.invoke(Method.java:597)

    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.