Announcement Announcement Module
Collapse
No announcement yet.
openSessionInView problem in portlet action phase Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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

    Comment

    Working...
    X