Logout on Expired session - OOM
lasimo Feb 5, 2010 6:24 PMIn my application one page is loading a list of BLOBs as attachments. If the session expire and I try to logout the app is redirecting me on the login page, that's fine, but as soon as I try to login the application goes in error with an OutOfMemoryError: Java heap space.
This thing does not happen on other screens and does not happen if I click on other button or I do other actions in the Application, even on the mentioned page.
I never worked with Seam before but seems to me that Seam is trying to restore an old session, which is invalid now.
I tried to find a solution but I really really do not have any ideas what could be.
Any suggestion will be greatly appreciated!
I believe my page.xml is standard:
<page view-id="/visit/listVisits.xhtml"> <begin-conversation flush-mode="manual" join="true" /> </page> <page view-id="/login.xhtml"> <navigation from-action="#{identity.login}"> <rule if-outcome="loggedIn"> <redirect view-id="/index.xhtml" /> </rule> </navigation> </page>
And this is part of my web.xml:
<listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener> <filter> <filter-name>Seam Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> </filter> <filter-mapping> <filter-name>Seam Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <servlet-name>Seam Resource Servlet</servlet-name> <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Seam Resource Servlet</servlet-name> <url-pattern>/seam/resource/*</url-pattern> </servlet-mapping> <!-- JSF --> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param>
Thanks!