From: <no...@at...> - 2006-05-13 22:35:12
|
org.hibernate.AssertionFailure: dirty, but no dirty properties -------------------------------------------------------------- Key: EJB-180 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB= -180 Project: Hibernate Entity Manager Type: Bug Environment: JBoss 4.0.4CR2 Reporter: Micha=C5=82 Borowiecki This exception is raised in the following scenario: 1. An entity is returned from a find operation. 2. It is modified. 3. EntityManager.merge is called on it. 4. In the PreUpdate callback the bean has its fields modified to the values= they had before step 2. 5. The DefaultFlushEntityEventListener determines that all the fields have = their values equal to those in the cache and raises the error: org.hibernate.AssertionFailure: dirty, but no dirty properties =09at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdat= e(DefaultFlushEntityEventListener.java:256) =09at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity= (DefaultFlushEntityEventListener.java:121) =09at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(A= bstractFlushingEventListener.java:195) =09at org.hibernate.event.def.AbstractFlushingEventListener.flushEverything= ToExecutions(AbstractFlushingEventListener.java:76) =09at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus= hEventListener.java:26) =09at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:988) =09at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:337) =09at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(Abstra= ctEntityManagerImpl.java:473) This bug is probably a reincarnation of EJB-29, however that report did not= have a comprehensive description so I decided to create a new one. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |