Results 1 to 2 of 2

Thread: openSessionInView problem in portlet action phase

  1. #1
    Join Date
    May 2006
    Posts
    4

    Default 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. #2
    Join Date
    Aug 2006
    Posts
    8

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