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 report launches exception #879

Closed kwoot closed 6 years ago

kwoot commented 13 years ago

(Original Bugzilla Bug ID: 735)

Date: 2010-11-17 18:16:27 From: Xavi Castaño \<xcastanho@igalia.com> To: Susana \<smpedreira@gmail.com> Version: navalplan-1.0 (1.0.x) Last updated: 2011-03-07 14:29:02


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

kwoot commented 6 years ago

Bugzilla Comment ID: 1819 Date: 2010-11-17 18:16:27 From: Xavi Castaño \<xcastanho@igalia.com>

Attached dump. Init date: 1 Dec 2010 End date: 1 Jan 2011 All orders and status

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:129) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingStateType(OrderElement.java:847) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingState(OrderElement.java:159) at org.navalplanner.business.orders.entities.OrderElement.isSchedulingPoint(OrderElement.java:419) 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$$ac645ca3.isSchedulingPoint() ... 5952077 [721834343@qtp-1944239527-67] 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:129) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingStateType(OrderElement.java:847) at org.navalplanner.business.orders.entities.OrderElement.getSchedulingState(OrderElement.java:159) at org.navalplanner.business.orders.entities.OrderElement.isSchedulingPoint(OrderElement.java:419) 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$$ac645ca3.isSchedulingPoint() at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.lookToUpAssignedTask(TimeLineRequiredMaterialModel.java:251) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.findTaskBy(TimeLineRequiredMaterialModel.java:233) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.filterAndCreateMaterialDTOs(TimeLineRequiredMaterialModel.java:197) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.filterConsult(TimeLineRequiredMaterialModel.java:187) at org.navalplanner.web.reports.TimeLineRequiredMaterialModel.getTimeLineRequiredMaterial(TimeLineRequiredMaterialModel.java:162) 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 $Proxy184.getTimeLineRequiredMaterial(Unknown Source) at org.navalplanner.web.reports.TimeLineRequiredMaterialController.getDataSource(TimeLineRequiredMaterialController.java:130) at org.navalplanner.web.reports.NavalplannerReportController.showReport(NavalplannerReportController.java:59) at org.navalplanner.web.reports.TimeLineRequiredMaterialController.showReport(TimeLineRequiredMaterialController.java:190) 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: 1860 Date: 2010-12-01 16:00:00 From: Javier Morán \<jmoran@igalia.com>

If you want to reproduce the bug easily use the new database dump upload

kwoot commented 6 years ago

Bugzilla Comment ID: 1868 Date: 2010-12-09 13:47:15 From: Susana \<smpedreira@gmail.com>

work for me.

kwoot commented 6 years ago

Bugzilla Comment ID: 1861 Date: 2010-12-01 16:00:48 From: Javier Morán \<jmoran@igalia.com>


Attached file: dump.sql File description: database dump