History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XPR-248
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Mateusz Prokopowicz
Reporter: Mateusz Prokopowicz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
xplanner

Lazy initialization exception during data sampling

Created: 13/Mar/06 08:02 AM   Updated: 13/Mar/06 08:04 AM
Component/s: Charts
Affects Version/s: 0.7
Fix Version/s: 0.7

Time Tracking:
Not Specified

JDK version and platform: 1.4
Database: MySQL/4.0.23
Application server: Tomcat/5.0


 Description  « Hide
DataSamplingJob throws the following exception:
[ 115085] ERROR - te.LazyInitializationException - Failed to lazily initialize a collection - no session or session was closed
net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:214)
at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
at net.sf.hibernate.collection.Set.isEmpty(Set.java:114)
at com.technoetic.xplanner.util.CollectionUtils.sum(CollectionUtils.java:10)
at com.technoetic.xplanner.domain.Iteration.getSumOfStoryProperty(Iteration.java:249)
at com.technoetic.xplanner.domain.Iteration.getTaskCurrentEstimatedHours(Iteration.java:131)
at com.technoetic.xplanner.domain.Iteration.getEstimatedHours(Iteration.java:126)
at com.technoetic.xplanner.charts.DataSamplerImpl.saveSamples(DataSamplerImpl.java:100)
at com.technoetic.xplanner.charts.DataSamplerImpl.generateDataSamples(DataSamplerImpl.java:48)
at com.technoetic.xplanner.charts.DataSamplerImpl.generateDataSamples(DataSamplerImpl.java:55)
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:324)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
at $Proxy0.generateDataSamples(Unknown Source)
at com.technoetic.xplanner.charts.DataSamplingSupport.generateSamplesForAllIterations(DataSamplingSupport.java:47)
at com.technoetic.xplanner.charts.DataSamplingSupport$$FastClassByCGLIB$$b613b438.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.technoetic.xplanner.charts.DataSamplingSupport$$EnhancerByCGLIB$$183b67d9.generateSamplesForAllIterations(<generated>)
at com.technoetic.xplanner.charts.DataSamplingJob.executeInternal(DataSamplingJob.java:28)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66)
at org.quartz.core.JobRunShell.run(JobRunShell.java:141)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:281)

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.