Closed kwoot closed 6 years ago
Bugzilla Comment ID: 1817 Date: 2010-11-17 18:08:01 From: Xavi Castaño \<xcastanho@igalia.com>
To reproduce:
Show report....
Bugzilla Comment ID: 1859 Date: 2010-12-01 15:54:00 From: Javier Morán \<jmoran@igalia.com>
Reproduce the bug with the new database dump
Bugzilla Comment ID: 1867 Date: 2010-12-09 13:40:05 From: Susana \<smpedreira@gmail.com>
it is necessary to load the element from BD and avoid using the proxy.
Bugzilla Comment ID: 1816 Date: 2010-11-17 18:05:59 From: Xavi Castaño \<xcastanho@igalia.com>
trying to get report "order cost per resource" I receive the following error:
Run-time error: org.navalplanner.business.orders.entities.OrderLineGroup$$EnhancerByCGLIB$$40cea652 cannot be cast to org.navalplanner.business.orders.entities.Order . Error was registered and it will be fixed as soon as possible.
SEVERE: >>java.lang.ClassCastException: org.navalplanner.business.orders.entities.OrderLineGroup$$EnhancerByCGLIB$$40cea652 cannot be cast to org.navalplanner.business.orders.entities.Order
at org.navalplanner.business.orders.entities.OrderLineGroup$$EnhancerByCGLIB$$40cea652.getOrder(
) at org.navalplanner.business.orders.entities.OrderElement.getOrder(OrderElement.java:947) 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.OrderLineGroup$$EnhancerByCGLIB$$40cea652.getOrder( ) at org.navalplanner.business.orders.entities.OrderElement.getOrder(OrderElement.java:947) 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) ... 5483825 [1785938593@qtp-1944239527-66] ERROR org.navalplanner.web.error.PageForErrorOnEvent - org.navalplanner.business.orders.entities.OrderLineGroup$$EnhancerByCGLIB$$40cea652 cannot be cast to org.navalplanner.business.orders.entities.Order java.lang.ClassCastException: org.navalplanner.business.orders.entities.OrderLineGroup$$EnhancerByCGLIB$$40cea652 cannot be cast to org.navalplanner.business.orders.entities.Order at org.navalplanner.business.orders.entities.OrderLineGroup$$EnhancerByCGLIB$$40cea652.getOrder( ) at org.navalplanner.business.orders.entities.OrderElement.getOrder(OrderElement.java:947) 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.OrderLineGroup$$EnhancerByCGLIB$$40cea652.getOrder( ) at org.navalplanner.business.orders.entities.OrderElement.getOrder(OrderElement.java:947) 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.getOrder( ) at org.navalplanner.business.orders.daos.OrderDAO.getOrderCostsPerResource(OrderDAO.java:147) 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.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:138) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) 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 $Proxy50.getOrderCostsPerResource(Unknown Source) at org.navalplanner.web.reports.OrderCostsPerResourceModel.getOrderReport(OrderCostsPerResourceModel.java:104) 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 $Proxy182.getOrderReport(Unknown Source) at org.navalplanner.web.reports.OrderCostsPerResourceController.getDataSource(OrderCostsPerResourceController.java:109) at org.navalplanner.web.reports.OrderCostsPerResourceController.showReport(OrderCostsPerResourceController.java:94) 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)
Attached file: dump.sql File description: dump
Bugzilla Comment ID: 1858 Date: 2010-12-01 15:49:41 From: Javier Morán \<jmoran@igalia.com>
Attached file: dump.sql File description: database dump
(Original Bugzilla Bug ID: 733)
Date: 2010-11-17 18:05:59 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:52:48
(Note: this issue was migrated automatically with bugzilla2github.py tool )