javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-195] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The shared class model.Address must not reference the isolated class model.City. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[city] Descriptor: RelationalDescriptor(model.Address --> [DatabaseTable(PUBLISHER)]) Exception [EclipseLink-41] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: A non-read-only mapping must be defined for the sequence number field. Descriptor: RelationalDescriptor(model.Publisher --> [DatabaseTable(PUBLISHER)]) Runtime Exceptions: ---------------------------------------------------------

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Eclipse Bugzilla by shaun.smith, 1 year ago
Exception Description: A non-read-only mapping must be defined for the sequence number field. Descriptor: RelationalDescriptor(model.Publisher --> [DatabaseTable(PUBLISHER)]) Runtime Exceptions: ---------------------------------------------------------
via Stack Overflow by deamon
, 2 years ago
java.lang.ClassCastException: org.eclipse.jetty.jndi.NamingContext cannot be cast to javax.sql.DataSource
via Eclipse Bugzilla by mgoe, 1 year ago
): org.eclipse.persistence.exceptions.DescriptorException Exception Description: A non-read-only mapping must be defined for the sequence number field. Descriptor: RelationalDescriptor(Department --> [DatabaseTable(DEPARTMENT)]) Runtime Exceptions: ---------------------------------------------------------
via Coderanch by kunal green, 11 months ago
Exception [EclipseLink-4003] (Eclipse Persistence Services - 1.1.3.v20091002-r5404): org.eclipse.persistence.exceptions.DatabaseException Exception Description: Configuration error. Class [oracle.jdbc.driver.OracleDriver] not found.
via Oracle Community by 885196, 1 year ago
Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
via hivmr.com by Unknown author, 1 year ago
Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-195] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The shared class model.Address must not reference the isolated class model.City. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[city] Descriptor: RelationalDescriptor(model.Address --> [DatabaseTable(PUBLISHER)]) Exception [EclipseLink-41] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: A non-read-only mapping must be defined for the sequence number field. Descriptor: RelationalDescriptor(model.Publisher --> [DatabaseTable(PUBLISHER)]) Runtime Exceptions: ---------------------------------------------------------
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:397)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:151)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:207)
at example.Reproduction.main(Reproduction.java:12)

Users with the same issue

Once, 11 months ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.