LibrePlan / libreplan

LibrePlan - Open Web Planning
https://www.libreplan.dev
GNU Affero General Public License v3.0
289 stars 170 forks source link

Material needs at date report error #764

Closed kwoot closed 6 years ago

kwoot commented 14 years ago

(Original Bugzilla Bug ID: 620)

Date: 2010-09-03 10:49:50 From: Xavi Castaño \<xcastanho@igalia.com> To: Susana \<smpedreira@gmail.com> Version: navalplan-1.0 (1.0.x) Last updated: 2011-01-18 17:54:07


(Note: this issue was migrated automatically with bugzilla2github.py tool )

kwoot commented 6 years ago

Bugzilla Comment ID: 1502 Date: 2010-09-03 10:49:50 From: Xavi Castaño \<xcastanho@igalia.com>

Trying to show material needs for order "Pedido grupo 1" I receive the following exception:

Run-time error: in order to use scheduling state related data useSchedulingDataFor(OrderVersion orderVersion) must be called first . Error was registered and it will be fixed as soon as possible.

SEVERE: >>java.lang.IllegalStateException: in order to use scheduling state related data useSchedulingDataFor(OrderVersion orderVersion) must be called first

at org.navalplanner.business.orders.entities.OrderElement.getCurrentSchedulingData(OrderElement.java:130) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingStateType(OrderElement.java:840) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingState(OrderElement.java:160) at org.navalplanner.business.orders.entities.OrderElement.isSchedulingPoint(OrderElement.java:413) 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.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at org.navalplanner.business.orders.entities.OrderElement$$EnhancerByCGLIB$$8e48596f.isSchedulingPoint() ... 64361006 [2122512908@qtp-2047532945-77] ERROR org.navalplanner.web.error.PageForErrorOnEvent - in order to use scheduling state related data useSchedulingDataFor(OrderVersion orderVersion) must be called first java.lang.IllegalStateException: in order to use scheduling state related data useSchedulingDataFor(OrderVersion orderVersion) must be called first at org.navalplanner.business.orders.entities.OrderElement.getCurrentSchedulingData(OrderElement.java:130) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingStateType(OrderElement.java:840) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingState(OrderElement.java:160) at org.navalplanner.business.orders.entities.OrderElement.isSchedulingPoint(OrderElement.java:413) 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.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at org.navalplanner.business.orders.entities.OrderElement$$EnhancerByCGLIB$$8e48596f.isSchedulingPoint() at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.lookToUpAssignedTask(TimeLineRequiredMaterialModel.java:243) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.findTaskBy(TimeLineRequiredMaterialModel.java:224) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.filterAndCreateMaterialDTOs(TimeLineRequiredMaterialModel.java:188) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.filterConsult(TimeLineRequiredMaterialModel.java:178) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.getTimeLineRequiredMaterial(TimeLineRequiredMaterialModel.java:153) 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 $Proxy168.getTimeLineRequiredMaterial(Unknown Source) at org.navalplanner.web.reports.TimeLineRequiredMaterialController.getDataSource(TimeLineRequiredMaterialController.java:135) at org.navalplanner.web.reports.NavalplannerReportController.showReport(NavalplannerReportController.java:59) at org.navalplanner.web.reports.TimeLineRequiredMaterialController.showReport(TimeLineRequiredMaterialController.java:195) 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)

kwoot commented 6 years ago

Bugzilla Comment ID: 1511 Date: 2010-09-06 18:11:56 From: Susana \<smpedreira@gmail.com>

It is necessary updating the current scenary for each order and its children when the report is shown.

kwoot commented 6 years ago

Bugzilla Comment ID: 1525 Date: 2010-09-07 17:47:36 From: Oscar González \<ogonzalez@igalia.com>

commit 3f8e06e7cfc4eb48a847c73931bfb3f5f0d37294 Author: Susana Montes Pedreira smontes@wirelessgalicia.com Date: Mon Sep 6 17:52:05 2010 +0200

[Bug #620] Updating the current scenary for each order and its children when the report is shown.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
kwoot commented 6 years ago

Bugzilla Comment ID: 1507 Date: 2010-09-06 17:19:20 From: Xavi Castaño \<xcastanho@igalia.com>


Attached file: dump.sql.gz File description: Dump