Ao abrir e fechar uma tela varias vezes no programa aconteceu o seguinte erro
221155 [Thread-89] ERROR org.hibernate.AssertionFailure - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: collection was processed twice by flush()
at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:225)
at org.hibernate.engine.Collections.processReachableCollection(Collections.java:208)
at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:124)
at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:84)
at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:78)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:161)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:58)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:996)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1589)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
at com.devsolution.bov.model.Dao.PastoDao.listAll(PastoDao.java:34)
at com.devsolution.bov.model.Service.PastoService.listAll(PastoService.java:63)
at com.devsolution.bov.gui.tela.cadastro.provider.CadBovinoProvider.getPasto(CadBovinoProvider.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Hibernate: select this_.id_faze as id1_10_0_, this_.nome_fazenda as nome2_10_0_, this_.id_prop as id5_10_0_, this_.sistema_de_criacao as sistema3_10_0_, this_.tipo_manejo as tipo4_10_0_ from fazendas this_
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Alguem sabe porque?