Closed kwoot closed 6 years ago
Bugzilla Comment ID: 132 Date: 2009-10-18 23:04:36 From: Oscar González \<ogonzalez@igalia.com>
In order to reproduce it. Create a calendar. Create a resource with a derived calendar for it. Save. Then, without reloading the listing, create a new resource. Don't change anything at calendar's tab. Fill the required data. Create. Then this happens:
249316 [16195797@qtp-11474887-4] ERROR org.navalplanner.web.error.PageForErrorOnEvent - Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.calendars.entities.BaseCalendar.exceptions; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.calendars.entities.BaseCalendar.exceptions org.springframework.orm.hibernate3.HibernateSystemException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.calendars.entities.BaseCalendar.exceptions; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.calendars.entities.BaseCalendar.exceptions at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676) at org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:789) at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:663) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy70.save(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.navalplanner.web.common.ExceptionCatcherProxy$1.invoke(ExceptionCatcherProxy.java:85) at $Proxy71.save(Unknown Source) at org.navalplanner.web.resources.worker.WorkerCRUDController.save(WorkerCRUDController.java:145) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at bsh.Reflect.invokeMethod(Unknown Source) at bsh.Reflect.invokeObjectMethod(Unknown Source) at bsh.Name.invokeMethod(Unknown Source) at bsh.BSHMethodInvocation.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:119) at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:310) at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:787) at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:176) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:493) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:425) Caused by: org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.calendars.entities.BaseCalendar.exceptions at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:226) at org.hibernate.engine.Collections.processReachableCollection(Collections.java:185) at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:37) at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101) at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61) at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55) at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:138) at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196) at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:655) ... 33 more
Bugzilla Comment ID: 347 Date: 2009-12-09 10:30:31 From: Manuel Rego Casasnovas \<rego@igalia.com>
I can't reproduce this bug with last version.
Could you confirm that?
Bugzilla Comment ID: 514 Date: 2009-12-29 14:46:48 From: Manuel Rego Casasnovas \<rego@igalia.com>
(Original Bugzilla Bug ID: 54)
Date: 2009-10-18 23:04:36 From: Oscar González \<ogonzalez@igalia.com> To: Manuel Rego Casasnovas \<rego@igalia.com> Version: navalplan-1.0 (1.0.x) Last updated: 2011-01-18 17:54:19
(Note: this issue was migrated automatically with bugzilla2github.py tool )