Closed kwoot closed 6 years ago
Bugzilla Comment ID: 557 Date: 2010-01-11 22:45:24 From: Oscar González \<ogonzalez@igalia.com>
I didn't manage to reproduce it. I used the same dump. I added a order element to "Modulo de planificación", i set some hours i marked it as scheduled, saved and it worked.
Bugzilla Comment ID: 545 Date: 2010-01-11 18:24:36 From: Xavi Castaño \<xcastanho@igalia.com>
I edited an order adding two tasks as children of "Modulo de planificación" in an existent and planned order (Proxecto para o desenvolvemento ... - release 5).
I received the following error and system changed to tab "Task quality forms".
Run-time error: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations . Error was registered and itll be fixed as soon as possible.
SEVERE: >>org.springframework.orm.hibernate3.HibernateSystemException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations 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) ... 13622860 [700554121@qtp-838449156-85] ERROR org.navalplanner.web.error.PageForErrorOnEvent - Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations org.springframework.orm.hibernate3.HibernateSystemException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.navalplanner.business.planner.entities.Task.resourceAllocations at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.convertHibernateAccessException(AbstractSessionFactoryBean.java:303) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.translateExceptionIfPossible(AbstractSessionFactoryBean.java:282) at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:62) at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:212) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:146) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy53.getActiveOrderSequence(Unknown Source) at org.navalplanner.web.orders.OrderModel.generateOrderElementCodes(OrderModel.java:328) at org.navalplanner.web.orders.OrderModel.save(OrderModel.java:318) 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy96.save(Unknown Source) at org.navalplanner.web.orders.OrderCRUDController.save(OrderCRUDController.java:313) at org.navalplanner.web.orders.OrderCRUDController.saveAndContinue(OrderCRUDController.java:283) 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.planner.entities.Task.resourceAllocations 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.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35) at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:970) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1563) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283) at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:305) at org.navalplanner.business.common.daos.OrderSequenceDAO.getActiveOrderSequence(OrderSequenceDAO.java:80) 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:138) ... 37 more
Bugzilla Comment ID: 547 Date: 2010-01-11 18:28:46 From: Xavi Castaño \<xcastanho@igalia.com>
mmmm, I saw that system stored my new task.
Bugzilla Comment ID: 546 Date: 2010-01-11 18:26:38 From: Xavi Castaño \<xcastanho@igalia.com>
Attached file: dump.sql.gz File description: Database dump
(Original Bugzilla Bug ID: 229)
Date: 2010-01-11 18:24:36 From: Xavi Castaño \<xcastanho@igalia.com> To: Javier Morán \<jmoran@igalia.com> Version: navalplan-1.0 (1.0.x) Last updated: 2011-01-18 17:54:18
(Note: this issue was migrated automatically with bugzilla2github.py tool )