org.springframework.orm.hibernate4.HibernateSystemException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243; nested exception is org.hibernate.HibernateException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243

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 GitHub by jluc2808
, 2 years ago
An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243; nested exception is org.hibernate.HibernateException: An immutable
via GitHub by jluc2808
, 2 years ago
An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243; nested exception is org.hibernate.HibernateException: An immutable
via Stack Overflow by Right Of Zen
, 4 months ago
Don't change the reference to a collection with delete-orphan enabled : thisproject.domain.template.Assessment.modules; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with delete-orphan enabled : thisproject.domain.template.Assessment.modules
via Stack Overflow by Marc
, 1 year ago
Error while indexing in Hibernate Search (before transaction completion); nested exception is org.hibernate.HibernateException: Error while indexing in Hibernate Search (before transaction completion)
via GitHub by lizhi2013
, 1 year ago
Found shared references to a collection: com.mossle.form.persistence.domain.FormTemplate.formSchemas; nested exception is org.hibernate.HibernateException: Found shared references to a collection: com.mossle.form.persistence.domain.FormTemplate.formSchemas
via Stack Overflow by iProgrammer
, 2 years ago
identifier of an instance of com.table.model.Employee was altered from 4 to null; nested exception is org.hibernate.HibernateException: identifier of an instance of com.table.model.Employee was altered from 4 to null
org.springframework.orm.hibernate4.HibernateSystemException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243; nested exception is org.hibernate.HibernateException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243
at org.hibernate.event.internal.DefaultFlushEntityEventListener.checkNaturalId(DefaultFlushEntityEventListener.java:124)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:200)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:157)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:230)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:100)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1159)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:404)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:755)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:475)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:270)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.yamj.core.database.service.ArtworkStorageService$$EnhancerBySpringCGLIB$$28ee9239.updateArtwork()
at org.yamj.core.service.artwork.ArtworkScannerService.scanArtwork(ArtworkScannerService.java:146)
at org.yamj.core.service.artwork.ArtworkScannerRunner.run(ArtworkScannerRunner.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception.

Write tip

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