Closed kwoot closed 6 years ago
Bugzilla Comment ID: 2419 Date: 2011-03-31 13:47:31 From: Diego Pino \<dpino@igalia.com>
Find dump attached.
Steps to reproduce:
Run-time exception launched
Run-time error: deleted object would be re-saved by cascade (remove deleted object from associations): [org.navalplanner.business.requirements.entities.IndirectCriterionRequirement#26378]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [org.navalplanner.business.requirements.entities.IndirectCriterionRequirement#26378] . Error was registered and it will be fixed as soon as possible.
945561 [1044079255@qtp-1267632540-3] ERROR org.navalplanner.web.error.PageForErrorOnEvent - deleted object would be re-saved by cascade (remove deleted object from associations): [org.navalplanner.business.requirements.entities.IndirectCriterionRequirement#26378]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [org.navalplanner.business.requirements.entities.IndirectCriterionRequirement#26378] org.springframework.dao.InvalidDataAccessApiUsageException: deleted object would be re-saved by cascade (remove deleted object from associations): [org.navalplanner.business.requirements.entities.IndirectCriterionRequirement#26378]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [org.navalplanner.business.requirements.entities.IndirectCriterionRequirement#26378] at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:654) 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 $Proxy83.reattach(Unknown Source) at org.navalplanner.web.orders.ManageOrderElementAdvancesModel.reattachmentOrderElement(ManageOrderElementAdvancesModel.java:263) at org.navalplanner.web.orders.ManageOrderElementAdvancesModel.initEdit(ManageOrderElementAdvancesModel.java:224) 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 $Proxy141.initEdit(Unknown Source) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.openWindow(ManageOrderElementAdvancesController.java:158) at org.navalplanner.web.orders.OrderElementController.setupManageOrderElementAdvancesController(OrderElementController.java:128) 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:797) 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:519) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)
Bugzilla Comment ID: 2468 Date: 2011-04-06 19:14:18 From: Susana \<smpedreira@gmail.com>
commit 937080fd0c814f927277aed7845ce77ce9338bc2
[Bug #961] Call to dontPoseAsTransientObjectAnymore for each transient object.
There are transient instances when you add indirect criterion requirements , so after saving it must be call the method dontPoseAsTransientObjectAnymore for each transient instance.
FEA: ItEr74S04BugFixing
Bugzilla Comment ID: 2420 Date: 2011-03-31 13:48:04 From: Diego Pino \<dpino@igalia.com>
Attached file: dump-deleted-object-would-be-resaved-by-cascade.sql File description: Dump to reproduce the bug
(Original Bugzilla Bug ID: 961)
Date: 2011-03-31 13:47:31 From: Diego Pino \<dpino@igalia.com> To: Susana \<smpedreira@gmail.com> Version: navalplan-1.0 (1.0.x) Last updated: 2011-04-06 19:14:18
(Note: this issue was migrated automatically with bugzilla2github.py tool )