Closed kwoot closed 6 years ago
Bugzilla Comment ID: 1201 Date: 2010-06-14 21:40:45 From: Javier Morán \<jmoran@igalia.com>
If you try to consolidate in a different scenario than master you get the following exception [1]
In order to reproduce it you can do the following steps in the attached dump.
At this poing the excepcion in [1] appears.
[1] 14-jun-2010 21:33:47 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1131 GRAVE: >>java.lang.IllegalStateException: modifications to assignments can't be done if the scenario on which to work on is not explicitly specified
at org.navalplanner.business.planner.entities.ResourceAllocation$NoExplicitlySpecifiedScenario.modificationsNotAllowed(ResourceAllocation.java:926) at org.navalplanner.business.planner.entities.ResourceAllocation$NoExplicitlySpecifiedScenario.removeAssignments(ResourceAllocation.java:898) at org.navalplanner.business.planner.entities.ResourceAllocation$DayAssignmentsState.removingAssignments(ResourceAllocation.java:853) at org.navalplanner.business.planner.entities.ResourceAllocation.removingAssignments(ResourceAllocation.java:696) at org.navalplanner.business.planner.entities.ResourceAllocation.resetAssigmentsForInterval(ResourceAllocation.java:661) at org.navalplanner.business.planner.entities.ResourceAllocation$AssignmentsAllocation.allocate(ResourceAllocation.java:547) ... 705862 [848422251@qtp-311732802-12] ERROR org.navalplanner.web.error.PageForErrorOnEvent - modifications to assignments can't be done if the scenario on which to work on is not explicitly specified java.lang.IllegalStateException: modifications to assignments can't be done if the scenario on which to work on is not explicitly specified at org.navalplanner.business.planner.entities.ResourceAllocation$NoExplicitlySpecifiedScenario.modificationsNotAllowed(ResourceAllocation.java:926) at org.navalplanner.business.planner.entities.ResourceAllocation$NoExplicitlySpecifiedScenario.removeAssignments(ResourceAllocation.java:898) at org.navalplanner.business.planner.entities.ResourceAllocation$DayAssignmentsState.removingAssignments(ResourceAllocation.java:853) at org.navalplanner.business.planner.entities.ResourceAllocation.removingAssignments(ResourceAllocation.java:696) at org.navalplanner.business.planner.entities.ResourceAllocation.resetAssigmentsForInterval(ResourceAllocation.java:661) at org.navalplanner.business.planner.entities.ResourceAllocation$AssignmentsAllocation.allocate(ResourceAllocation.java:547) at org.navalplanner.business.planner.entities.ResourceAllocation$AssignmentsAllocation.access$0(ResourceAllocation.java:540) at org.navalplanner.business.planner.entities.ResourceAllocation$AssignmentsAllocation$AllocateHoursOnInterval.allocateHours(ResourceAllocation.java:508) at org.navalplanner.web.planner.consolidations.AdvanceConsolidationModel.reassign(AdvanceConsolidationModel.java:265) at org.navalplanner.web.planner.consolidations.AdvanceConsolidationModel.addConsolidatedValue(AdvanceConsolidationModel.java:249) at org.navalplanner.web.planner.consolidations.AdvanceConsolidationModel.addConsolidationIfIsNeeded(AdvanceConsolidationModel.java:198) at org.navalplanner.web.planner.consolidations.AdvanceConsolidationModel.accept(AdvanceConsolidationModel.java:151) 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.accept(Unknown Source) at org.navalplanner.web.planner.consolidations.AdvanceConsolidationController.accept(AdvanceConsolidationController.java:90) 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)
Bugzilla Comment ID: 1204 Date: 2010-06-15 00:35:33 From: Oscar González \<ogonzalez@igalia.com>
commit 833c1b1eba947ecd454dc7af881d8965fd1a78c3 Author: Ãscar González Fernández ogonzalez@igalia.com Date: Mon Jun 14 23:53:41 2010 +0200
ItEr59S04ValidacionEProbasFuncionaisItEr58S04: [Bug #521] Fix bug.
Switching allocations to scenario after being created so it has not to
be done on each use case.
Bugzilla Comment ID: 1202 Date: 2010-06-14 21:42:13 From: Javier Morán \<jmoran@igalia.com>
Attached file: dump.sql File description: database dump
(Original Bugzilla Bug ID: 521)
Date: 2010-06-14 21:40:45 From: Javier Morán \<jmoran@igalia.com> To: Oscar González \<ogonzalez@igalia.com> Version: navalplan-1.0 (1.0.x) Last updated: 2011-01-18 17:51:47
(Note: this issue was migrated automatically with bugzilla2github.py tool )