Bug #961 (closed)
Opened 16 years ago
Closed 16 years ago
Missing Hibernate session after call to iQuery.clear() in Blitz
Reported by: | cxallan | Owned by: | cxallan |
---|---|---|---|
Priority: | blocker | Cc: | atarkowska, josh |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description
In Blitz when calls are made to getThumbnailByLongestSideSet() an exception is thrown:
org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at ome.model.meta.Event$$EnhancerByCGLIB$$84ec8e1c.getTime(<generated>) at ome.services.ThumbnailBean.getThumbnail(ThumbnailBean.java:736) at ome.services.ThumbnailBean.getThumbnailByLongestSide(ThumbnailBean.java:787) at ome.services.ThumbnailBean.getThumbnailByLongestSideSet(ThumbnailBean.java:703) 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:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at ome.security.basic.EventHandler.invoke(EventHandler.java:112) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:173) at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:158) 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 ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:169) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor.invokeUnderTrace(JamonPerformanceMonitorInterceptor.java:105) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy80.getThumbnailByLongestSideSet(Unknown Source) 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:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:79) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:35) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy80.getThumbnailByLongestSideSet(Unknown Source) 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:585) at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:194) at ome.services.blitz.impl.Interceptor.invoke(Interceptor.java:58) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy81.getThumbnailByLongestSideSet(Unknown Source) at omero.api._ThumbnailStoreTie.getThumbnailByLongestSideSet(_ThumbnailStoreTie.java:112) at omero.api._ThumbnailStoreDisp.___getThumbnailByLongestSideSet(_ThumbnailStoreDisp.java:285) at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:557) at IceInternal.Incoming.invoke(Incoming.java:147) at Ice.ConnectionI.invokeAll(ConnectionI.java:2249) at Ice.ConnectionI.message(ConnectionI.java:1362) at IceInternal.ThreadPool.run(ThreadPool.java:782) at IceInternal.ThreadPool.access$100(ThreadPool.java:12) at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:1242)
This is likely due to the iQuery.clear() that is located in getThumbnailByLongestSide() and is unneeded.
Change History (2)
comment:1 Changed 16 years ago by cxallan
- Owner changed from jmoore to callan
- Status changed from new to assigned
comment:2 Changed 16 years ago by cxallan
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Potential fix in r2358, Ola can you try this?