voyent
Tomcat: Illegal state exception: session already invalidated  XML
Forum Index -> Components
Author Message
Admin

Joined: 27/May/2004 00:00:00
Messages: 219
Offline


I have a simple login page and when I click on submit I get this exception. I'm using tomcat 5.5. The source code of the login page is attached at the end of the exception. I'm using the plugin for eclipse provided by ICESoft. So I believe it has configrued the web.xml properly.

java.lang.IllegalStateException: getAttribute: Session already invalidated
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1011)
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:109)
com.icesoft.faces.context.p.a(Unknown Source)
com.icesoft.faces.context.n.containsKey(Unknown Source)
com.icesoft.faces.application.D2DViewHandler.b(Unknown Source)
com.icesoft.faces.application.D2DViewHandler.getComponentAuxiliaryTreeFromSessionMap(Unknown Source)
com.icesoft.faces.context.BridgeFacesContext.a(Unknown Source)
com.icesoft.faces.context.BridgeExternalContext.getRequestMap(Unknown Source)
com.icesoft.faces.context.BridgeExternalContext.resetRequestMap(Unknown Source)
com.icesoft.faces.context.BridgeFacesContext.release(Unknown Source)
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.excel.filters.AccessFilter.doFilter(AccessFilter.java:36)

-----------------------------------------------------------
<f:view xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<f:loadBundle
basename="com.excel.messages"
var="msgs" />
<ice:outputDeclaration doctypeRoot="HTML"
doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<title><ice:outputText value="#{msgs.ApplicationTitle}" /></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<h:outputText value="#{styleBean.style}" escape="false" />
</head>
<body>


<ice:form>
<ice:panelGrid
styleClass="componentLayoutRootTable"
columns="1" >

<!-- Text Field input -->
<ice:panelGrid styleClass="formBorderHighlight">

<ice:messages/>

<ice:panelGrid columns="2" styleClass="componentPropertySelection">
<ice:outputText styleClass="propertyLabel" value="#{msgs['Login.Email']}" />
<ice:inputText value="#{user.email}" partialSubmit="false" />
<ice:outputText styleClass="propertyLabel" value="#{msgs['Login.Password']}" />
<ice:inputSecret value="#{user.password}"
partialSubmit="false" redisplay="true" />
<ice:commandButton id="login" value="Login" actionListener="#{user.login}"/>
<ice:commandButton id="register" value="Register" actionListener="#{user.register }}"/>
<ice:commandButton id="forgotpassword" value="Forgot Password" actionListener="#{user.forgotPassword}"/>
</ice:panelGrid>

</ice:panelGrid>
</ice:panelGrid>
</ice:form>
</body>
</html>
</f:view>
Admin

Joined: 27/May/2004 00:00:00
Messages: 219
Offline


<f:view xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<f:loadBundle
basename="com.excel.messages"
var="msgs" />
<ice:outputDeclaration doctypeRoot="HTML"
doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<title><ice:outputText value="#{msgs.ApplicationTitle}" /></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<h:outputText value="#{styleBean.style}" escape="false" />
</head>
<body>


<ice:form>
<ice:panelGrid
styleClass="componentLayoutRootTable"
columns="1" >

<!-- Text Field input -->
<ice:panelGrid styleClass="formBorderHighlight">

<h3><h:message/></h3><br />

<ice:panelGrid columns="2" styleClass="componentPropertySelection">
<ice:outputText styleClass="propertyLabel" value="#{msgs['Login.Email']}" />
<ice:inputText value="#{user.email}" partialSubmit="false" />
<ice:outputText styleClass="propertyLabel" value="#{msgs['Login.Password']}" />
<ice:inputSecret value="#{user.password}"
partialSubmit="false" redisplay="true" />
<ice:commandButton value="Login" actionListener="#{user.login}"/>
<ice:commandButton value="Register" actionListener="#{user.register }}"/>
<ice:commandButton value="Forgot Password" actionListener="#{user.forgotPassword}"/>
</ice:panelGrid>

</ice:panelGrid>
</ice:panelGrid>
</ice:form>
</body>
</html>
</f:view>
victorv

Joined: 21/Apr/2006 00:00:00
Messages: 6
Offline


see the server log for view the stack trace
[Email]
gregory_m

Joined: 17/Jan/2005 00:00:00
Messages: 130
Offline


I believe the error is being caused by the
< h3 > < h:message/ > < /h3 > < br / >

The message component requires that a componentId be specified in the "for" attribute.

Another alternative is to use a messages component instead of a message component.

< h3 > < h:messages / > < /h3 > < br / >
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team