LibrePlan / libreplan

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

Quality forms advance report error #765

Closed kwoot closed 6 years ago

kwoot commented 14 years ago

(Original Bugzilla Bug ID: 621)

Date: 2010-09-06 15:32:36 From: Xavi Castaño \<xcastanho@igalia.com> To: Oscar González \<ogonzalez@igalia.com> Version: navalplan-1.0 (1.0.x) Last updated: 2011-01-18 17:53:45


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

kwoot commented 6 years ago

Bugzilla Comment ID: 1524 Date: 2010-09-07 17:45:44 From: Oscar González \<ogonzalez@igalia.com>

commit e8340b1bd61171a8c9a7f4bca198aa5cdb245a75 Author: Óscar González Fernández ogonzalez@igalia.com Date: Tue Sep 7 17:11:15 2010 +0200

[Bug #621] Fix bug

The advance type retrieved from a QualityForm is a proxy and never had
its data loaded. Now it's data is forced to be loaded.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
kwoot commented 6 years ago

Bugzilla Comment ID: 1503 Date: 2010-09-06 15:32:36 From: Xavi Castaño \<xcastanho@igalia.com>

Trying to report advance from quality forms launches exception

486509 [Thread-26] ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:108) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:150) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.navalplanner.business.advance.entities.AdvanceType$$EnhancerByCGLIB$$8a388e88.getUnitName() at org.navalplanner.business.orders.entities.OrderLineGroup.getAllDirectAdvanceAssignments(OrderLineGroup.java:739) at org.navalplanner.business.orders.entities.OrderLineGroup.calculateFakeDirectAdvanceAssignment(OrderLineGroup.java:402) at org.navalplanner.web.orders.ManageOrderElementAdvancesModel.calculateFakeDirectAdvanceAssignment(ManageOrderElementAdvancesModel.java:618) at sun.reflect.GeneratedMethodAccessor409.invoke(Unknown Source) 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 $Proxy140.calculateFakeDirectAdvanceAssignment(Unknown Source) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.validateListAdvanceAssignment(ManageOrderElementAdvancesController.java:903) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.validateDataForm(ManageOrderElementAdvancesController.java:884) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.validate(ManageOrderElementAdvancesController.java:121) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.save(ManageOrderElementAdvancesController.java:131) at org.navalplanner.web.orders.OrderCRUDController.save(OrderCRUDController.java:575) at org.navalplanner.web.orders.OrderCRUDController.saveAndContinue(OrderCRUDController.java:529) 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) 06-Sep-2010 15:29:34 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1130 SEVERE: >>org.hibernate.LazyInitializationException: could not initialize proxy - no Session

at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:108) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:150) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.navalplanner.business.advance.entities.AdvanceType$$EnhancerByCGLIB$$8a388e88.getUnitName() at org.navalplanner.business.orders.entities.OrderLineGroup.getAllDirectAdvanceAssignments(OrderLineGroup.java:739) ... 486529 [1877511295@qtp-931024108-0] ERROR org.navalplanner.web.error.PageForErrorOnEvent - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:108) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:150) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.navalplanner.business.advance.entities.AdvanceType$$EnhancerByCGLIB$$8a388e88.getUnitName() at org.navalplanner.business.orders.entities.OrderLineGroup.getAllDirectAdvanceAssignments(OrderLineGroup.java:739) at org.navalplanner.business.orders.entities.OrderLineGroup.calculateFakeDirectAdvanceAssignment(OrderLineGroup.java:402) at org.navalplanner.web.orders.ManageOrderElementAdvancesModel.calculateFakeDirectAdvanceAssignment(ManageOrderElementAdvancesModel.java:618) at sun.reflect.GeneratedMethodAccessor409.invoke(Unknown Source) 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 $Proxy140.calculateFakeDirectAdvanceAssignment(Unknown Source) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.validateListAdvanceAssignment(ManageOrderElementAdvancesController.java:903) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.validateDataForm(ManageOrderElementAdvancesController.java:884) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.validate(ManageOrderElementAdvancesController.java:121) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.save(ManageOrderElementAdvancesController.java:131) at org.navalplanner.web.orders.OrderCRUDController.save(OrderCRUDController.java:575) at org.navalplanner.web.orders.OrderCRUDController.saveAndContinue(OrderCRUDController.java:529) 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) 127.0.0.1 - - [06/Sep/2010:13:29:34 +0000] "POST /navalplanner-webapp/zkau HTTP/1.1" 200 878 "http://localhost:8080/navalplanner-webapp/planner/index.zul;orders_list" "Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.8) Gecko/20100723 Ubuntu/9.10 (karmic) Firefox/3.6.8" 487020 [Thread-26] ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:108) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:150) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.navalplanner.business.advance.entities.AdvanceType$$EnhancerByCGLIB$$8a388e88.getUnitName() at org.navalplanner.business.orders.entities.OrderLineGroup.getAllDirectAdvanceAssignments(OrderLineGroup.java:739) at org.navalplanner.business.orders.entities.OrderLineGroup.calculateFakeDirectAdvanceAssignment(OrderLineGroup.java:402) at org.navalplanner.web.orders.ManageOrderElementAdvancesModel.prepareEditAdvanceMeasurements(ManageOrderElementAdvancesModel.java:157) 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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy140.prepareEditAdvanceMeasurements(Unknown Source) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.prepareEditAdvanceMeasurements(ManageOrderElementAdvancesController.java:253) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.selectAdvanceLine(ManageOrderElementAdvancesController.java:233) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.refreshSelectedAdvance(ManageOrderElementAdvancesController.java:1282) at org.navalplanner.web.orders.OrderCRUDController.setupManageOrderElementAdvancesController(OrderCRUDController.java:386) 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) 06-Sep-2010 15:29:35 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1130 SEVERE: >>org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:108) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:150) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.navalplanner.business.advance.entities.AdvanceType$$EnhancerByCGLIB$$8a388e88.getUnitName() at org.navalplanner.business.orders.entities.OrderLineGroup.getAllDirectAdvanceAssignments(OrderLineGroup.java:739) ... 487476 [1877511295@qtp-931024108-0] ERROR org.navalplanner.web.error.PageForErrorOnEvent - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:108) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:150) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at org.navalplanner.business.advance.entities.AdvanceType$$EnhancerByCGLIB$$8a388e88.getUnitName() at org.navalplanner.business.orders.entities.OrderLineGroup.getAllDirectAdvanceAssignments(OrderLineGroup.java:739) at org.navalplanner.business.orders.entities.OrderLineGroup.calculateFakeDirectAdvanceAssignment(OrderLineGroup.java:402) at org.navalplanner.web.orders.ManageOrderElementAdvancesModel.prepareEditAdvanceMeasurements(ManageOrderElementAdvancesModel.java:157) 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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy140.prepareEditAdvanceMeasurements(Unknown Source) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.prepareEditAdvanceMeasurements(ManageOrderElementAdvancesController.java:253) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.selectAdvanceLine(ManageOrderElementAdvancesController.java:233) at org.navalplanner.web.orders.ManageOrderElementAdvancesController.refreshSelectedAdvance(ManageOrderElementAdvancesController.java:1282) at org.navalplanner.web.orders.OrderCRUDController.setupManageOrderElementAdvancesController(OrderCRUDController.java:386) 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: 1504 Date: 2010-09-06 15:33:26 From: Xavi Castaño \<xcastanho@igalia.com>

To test: