6 Replies Latest reply on Jan 29, 2007 10:30 AM by Ryszard Kozmik

    org.hibernate.SessionException: Session was already closed

    Syed H Newbie

      Hi,

      I get the following exception when I launch my Sun JSF application deployed as a portlet page in the JBoss portal server version 2.4.1.

      I am using hibernate 3 jars. I dont get the below exception in the same jsf application that I have deployed in the JBoss AS 4.0.3

      2007-01-17 10:04:06,782 ERROR [org.jboss.portal.portlet.container.com_sun_faces_portlet_FacesPortlet] The portlet threw an exception
      javax.portlet.PortletException: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: Error getting property 'stateList' from bean of type com.jsf.EntityBean: org.hibernate.SessionException: Session was already closed
       at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:116)
       at com.sun.faces.portlet.ExternalContextImpl.dispatch(ExternalContextImpl.java:126)
       at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
       at com.sun.faces.portlet.ViewHandlerImpl.renderView(ViewHandlerImpl.java:122)
       at com.sun.faces.portlet.LifecycleImpl$RenderResponsePhase.execute(LifecycleImpl.java:540)
       at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:246)
       at com.sun.faces.portlet.LifecycleImpl.render(LifecycleImpl.java:188)
       at com.sun.faces.portlet.FacesPortlet.render(FacesPortlet.java:304)


      Please help me in resolving this.

      Thanks.