-
Aug 3rd, 2006, 07:49 AM
#1
openSessionInView problem in portlet action phase
I use PortletOpenSessionInViewInterceptor in render phase correctly with spring mvc.
But I get error "Nested Exception is org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed" in action phase.
Did I miss anything or there is a bug?
-
Dec 18th, 2008, 12:13 AM
#2
Set the applyWebRequestInterceptorsToRenderPhaseOnly property
I know this post is a bit old but the issue can be fixed by setting the applyWebRequestInterceptorsToRenderPhaseOnly property to false of the AbstractHandlerMapping subclasses, i.e.
- org.springframework.web.portlet.handler.ParameterH andlerMapping
org.springframework.web.portlet.mvc.annotation.Def aultAnnotationHandlerMapping
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules