[JBoss JIRA] Created: (RF-6607) A4J Session Timeout Bug
by Michael George (JIRA)
A4J Session Timeout Bug
-----------------------
Key: RF-6607
URL: https://jira.jboss.org/jira/browse/RF-6607
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: IDE: Eclipse 3.2.2 with Exadel Studio Pro 4.0.3
Servlet Engine: Apache Tomcat/5.5.17
Runtime JDK: 1.5.0_12
Server/OS: Dell Dimension XPS 710 / Windows Vista 32-bit
Reporter: Michael George
I'm working on an a4j webapp that requires a redirect to home.xhtml on session timeout. I looked at the jboss community forums to see if there were any suggestions and I found this (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=110826). I placed the A4J.AJAX.onExpired = function(loc,expiredMsg) override in my common.xhtml (used by all pages) and added the org.ajax4jsf.handleViewExpiredOnClient=true parameter in the web.xml, but this doesn't seem to be working for me. I've listed the steps needed to reproduce what I am seeing below. I can provide a WAR file with the test scenario as needed. Thanks.
REPRODUCTION STEPS:
1. Startup Tomcat
2. Open the webapp http://localhost:8080/TestBed
3. Navigate to page 1
4. Wait more than 1 minute (i.e. session expiration)
5. Navigate to home (or page 2)
6. Stack trace appears in catalina.out
WEB.XML:
<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<description>Test Bed</description>
<display-name>TestBed</display-name>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>deepMarine</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
<param-value>true</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<session-config>
<session-timeout>1</session-timeout>
</session-config>
<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>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
COMMON.XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<html>
<head>
<title>
<h:outputText value="TITLE" />
</title>
<script language="javascript" type="text/javascript">
A4J.AJAX.onExpired = function(loc,expiredMsg){
alert('SESSION EXPIRED');
};
</script>
<link rel="stylesheet" type="text/css" href="styles/common.css"></link>
</head>
<body>
<f:loadBundle basename="resources" var="msg" />
<div id="pageDiv">
<h:form id="form">
<a4j:jsFunction name="navigateTo" action="#{menuView.navigateTo}" reRender="page" requestDelay="300">
<a4j:actionparam name="navigateToParam" assignTo="#{menuView.toViewId}"/>
</a4j:jsFunction>
<h:panelGrid id="page" columns="1" cellpadding="0" cellspacing="0" border="0">
<rich:toolBar style="position:relative;z-index:100;vertical-align: top;" itemSeparator="disc">
<a4j:commandButton onclick="navigateTo('/pages/home.xhtml');" value="HOME" oncomplete="window.location.reload();" />
<a4j:commandButton onclick="navigateTo('/pages/1.xhtml');" value="PAGE 1" oncomplete="window.location.reload();" />
<a4j:commandButton onclick="navigateTo('/pages/2.xhtml');" value="PAGE 2" oncomplete="window.location.reload();" />
</rich:toolBar>
<ui:include src="#{menuView.toViewId}" />
</h:panelGrid>
</h:form>
</div>
</body>
</html>
</ui:composition>
HOME.XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:outputText value="PAGE NAME = HOME"/>
</ui:composition>
1.XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:outputText value="PAGE NAME = ONE"/>
</ui:composition>
2.XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:outputText value="PAGE NAME = TWO"/>
</ui:composition>
STACK TRACE:
Mar 23, 2009 6:18:42 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_12\jre\bin;.;C:\Windows\system32;C:\Windows;c:\PROGRA~1\Java\JRE16~1.0\bin;C:\Program Files\Common Files\ArcSoft\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\PROGRA~1\ULTRAE~1;C:\Program Files\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem\
Mar 23, 2009 6:18:42 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 23, 2009 6:18:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 628 ms
Mar 23, 2009 6:18:42 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 23, 2009 6:18:42 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Mar 23, 2009 6:18:42 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 23, 2009 6:18:43 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_12-b01-FCS) for context 'TestBed'
Mar 23, 2009 6:18:43 PM com.sun.faces.config.ConfigureListener contextInitialized
WARNING: JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
Mar 23, 2009 6:18:44 PM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
18:18:46,028 INFO CacheManager:67 - Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
18:18:46,034 INFO LRUMapCacheFactory:44 - Creating LRUMap cache instance using parameters: {com.sun.faces.validateXml=true, org.richfaces.SKIN=deepMarine, facelets.DEVELOPMENT=true, org.ajax4jsf.handleViewExpiredOnClient=true, javax.faces.DEFAULT_SUFFIX=.xhtml, com.sun.faces.verifyObjects=true, javax.faces.STATE_SAVING_METHOD=server, facelets.REFRESH_PERIOD=2, javax.faces.CONFIG_FILES=/WEB-INF/faces-config.xml}
18:18:46,035 INFO LRUMapCacheFactory:48 - Creating LRUMap cache instance of default capacity
18:18:46,057 INFO CacheManager:67 - Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
18:18:46,058 INFO LRUMapCacheFactory:44 - Creating LRUMap cache instance using parameters: {com.sun.faces.validateXml=true, org.richfaces.SKIN=deepMarine, facelets.DEVELOPMENT=true, org.ajax4jsf.handleViewExpiredOnClient=true, javax.faces.DEFAULT_SUFFIX=.xhtml, com.sun.faces.verifyObjects=true, javax.faces.STATE_SAVING_METHOD=server, facelets.REFRESH_PERIOD=2, javax.faces.CONFIG_FILES=/WEB-INF/faces-config.xml}
18:18:46,058 INFO LRUMapCacheFactory:48 - Creating LRUMap cache instance of default capacity
Mar 23, 2009 6:18:51 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 23, 2009 6:18:51 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 23, 2009 6:18:51 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/22 config=null
Mar 23, 2009 6:18:51 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 23, 2009 6:18:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9443 ms
Mar 23, 2009 6:19:05 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [TestBed] The ELResolvers for JSF were not registered with the JSP container.
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/jsf-impl.jar!/META-INF/mojarra_ext.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/a4j.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/ajax4jsf.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/jsp.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/rich.taglib.xml
Mar 23, 2009 6:19:06 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Users/Michael/Documents/Work/IDE/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/TestBed/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/richfaces.taglib.xml
18:19:13,089 INFO MenuView:29 - navigateTo(): Navigating to page /pages/1.xhtml
Mar 23, 2009 6:20:51 PM com.sun.faces.lifecycle.Phase doPhase
SEVERE: JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: ) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17a906e]
18:20:51,098 ERROR BaseXMLFilter:181 - Exception in the filter chain
javax.servlet.ServletException: viewId:/templates/common.jsf - View /templates/common.jsf could not be restored.
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
18:20:51,100 ERROR [Faces Servlet]:253 - Servlet.service() for servlet Faces Servlet threw exception
javax.faces.application.ViewExpiredException: viewId:/templates/common.jsf - View /templates/common.jsf could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Mar 23, 2009 6:20:51 PM com.sun.faces.lifecycle.Phase doPhase
SEVERE: JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: ) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17a906e]
18:20:51,380 ERROR BaseXMLFilter:181 - Exception in the filter chain
javax.servlet.ServletException: viewId:/templates/common.jsf - View /templates/common.jsf could not be restored.
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
18:20:51,381 ERROR [Faces Servlet]:253 - Servlet.service() for servlet Faces Servlet threw exception
javax.faces.application.ViewExpiredException: viewId:/templates/common.jsf - View /templates/common.jsf could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (RF-5054) ScrollableDataTable. Autoscroll Problem. Selection-Problem.
by Buttau Alexander (JIRA)
ScrollableDataTable. Autoscroll Problem. Selection-Problem.
-----------------------------------------------------------
Key: RF-5054
URL: https://jira.jboss.org/jira/browse/RF-5054
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Apache Tomcat 6.0.16 Server
Eclipse 3.3.2
Java 1.6
Windows XP SP3
RichFaces 3.3.0-20081124.104647-77
Reporter: Buttau Alexander
I have detected two problems concerning ScrollableDataTable.
I have created a Project that recreates these two problems. The project has only one page.
The page has a ScrollableDataTable with page size 30 (attribute row="30") bound to an array with 32 Items and a CommandButton that rerenders a Panel with a ScrollableDataTable inside and shows the current selection with 'javascript:alert(...)'.
Problem 1: Autoscroll Problem
1. You scroll down to the bottom.
2. Now you scroll to the top
3. After rerendering the ScrollableDataTable by clicking on CommandButton, it will automatically scroll down to the bottom after rendering.
Problem 2: Selection-Problem
Under some circumstances the selection of ScrollableDataTable gets corrupt.
Here is the Test-Case to recreate this Problem:
1. Call Page. No item selected
2. Now scroll to the bottom. (Row C-31 is shown)
3. Select an Item (for example C-25) and click on CommandLink "Selection"
4. The ScrollableDataTable is not properly rendered. No header is visible, and all columns are shown on the place of the first column. Probably a bug too? BUT IT IS NOT A PROBLEM YET.
5. Now F5 to reload a Page. The Table is rendered correct. But the Row C-27 has selection (Row C-25 was selected)
6. If you select a row now and click CommandButton "Selection" it shows always the wrong id. This id differs from really selected by 2. For example you select 30 => it shows 28.
Tested with Firefox 3 and Internet Explorer 7.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (RF-6257) Tree: JS Error after ajax selection of node.
by Alexander Dubovsky (JIRA)
Tree: JS Error after ajax selection of node.
--------------------------------------------
Key: RF-6257
URL: https://jira.jboss.org/jira/browse/RF-6257
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: 3.3.1.SNAPSHOT
jsp, facelets
All browsers
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Source:
<h:form>
<rich:tree id="tree" switchType="server" value="#{tree.data}" var="data"
ajaxSubmitSelection="true">
</rich:tree>
</h:form>
Data:
if (data == null) {
TreeNodeImpl<String> n = new TreeNodeImpl<String>();
n.setData("rnode");
int i = 0;
for (i = 0; i < 10; i++) {
TreeNodeImpl<String> t = new TreeNodeImpl<String>();
t.setData("node-" + i);
n.addChild(Integer.valueOf(i), t);
}
data = new TreeNodeImpl<String>();
data.setData("data");
data.addChild(Integer.valueOf(i), n);
}
Steps:
# Expand tree
# Try to select any node
Result: JS Error -
E is undefined
toggleSelection()(undefined)ui.pack.js.jsf (line 533)
setSelection()(Object childs=[10] tree=Object elements=Object)ui.pack.js.jsf (line 290)
restoreSelection()()ui.pack.js.jsf (line 282)
initialize()(function(), "j_id_jsp_408862106_2:tree", "j_id_jsp_408862106_2:tree:input", "server", Object, function(), Object columnCount=0 0=j 1=_ 2=i 3=d 4=_ 5=j 6=s 7=p 8=_ 9=4 10=0)ui.pack.js.jsf (line 206)
wrap()()framewor...ck.js.jsf (line 91)
A()framewor...ck.js.jsf (line 6)
(?)()()tree.jsf (line 25)
tree.jsf()()tree.jsf (line 14)
[Break on this error] }if(E["treeItem"]){var D=this.elements.textElement;
In IE6-7 the same error occures independent on switchType. In all other browsers error occures only in case switchType=server
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months