getting javax.faces.application.ViewExpiredException in jsf 1.2 with richfaces -


i'm working on application runs on (apache myfaces) jsf 1.2 richfaces 3. when try run application <h:commandbutton> triggering navigation case in faces-config.xml. i'm getting below problem

severe: view state cannot reconstructed javax.faces.facesexception: javax.faces.application.viewexpiredexception @ org.apache.myfaces.shared_impl.util.stateutils.decrypt(stateutils.java:488) @ org.apache.myfaces.shared_impl.util.stateutils.reconstruct(stateutils.java:376) @ org.apache.myfaces.renderkit.html.htmlresponsestatemanager.getsavedstate(htmlresponsestatemanager.java:187) @ org.apache.myfaces.renderkit.html.htmlresponsestatemanager.gettreestructuretorestore(htmlresponsestatemanager.java:151) @ org.ajax4jsf.application.ajaxstatemanager.restoreview(ajaxstatemanager.java:219) @ org.apache.myfaces.application.jsp.jspviewhandlerimpl.restoreview(jspviewhandlerimpl.java:515) @ org.ajax4jsf.application.viewhandlerwrapper.restoreview(viewhandlerwrapper.java:116) @ org.ajax4jsf.application.ajaxviewhandler.restoreview(ajaxviewhandler.java:131) @ org.apache.myfaces.lifecycle.restoreviewexecutor.execute(restoreviewexecutor.java:85) @ org.apache.myfaces.lifecycle.lifecycleimpl.executephase(lifecycleimpl.java:103) @ org.apache.myfaces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:76) @ javax.faces.webapp.facesservlet.service(facesservlet.java:183) @ org.apache.myfaces.webapp.myfacesservlet.service(myfacesservlet.java:103) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:298) @ org.apache.coyote.http11.http11processor.process(http11processor.java:859) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:588) @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489) @ java.lang.thread.run(unknown source) caused by: javax.faces.application.viewexpiredexception @ org.apache.myfaces.shared_impl.util.stateutils.decrypt(stateutils.java:481) ... 24 more mar 6, 2014 4:52:11 pm org.apache.myfaces.shared_impl.util.stateutils reconstruct severe: view state cannot reconstructed javax.faces.facesexception: javax.faces.application.viewexpiredexception @ org.apache.myfaces.shared_impl.util.stateutils.decrypt(stateutils.java:488) @ org.apache.myfaces.shared_impl.util.stateutils.reconstruct(stateutils.java:376) @ org.apache.myfaces.renderkit.html.htmlresponsestatemanager.getsavedstate(htmlresponsestatemanager.java:187) @ org.apache.myfaces.renderkit.html.htmlresponsestatemanager.getcomponentstatetorestore(htmlresponsestatemanager.java:163) @ org.ajax4jsf.application.ajaxstatemanager.restoreview(ajaxstatemanager.java:222) @ org.apache.myfaces.application.jsp.jspviewhandlerimpl.restoreview(jspviewhandlerimpl.java:515) @ org.ajax4jsf.application.viewhandlerwrapper.restoreview(viewhandlerwrapper.java:116) @ org.ajax4jsf.application.ajaxviewhandler.restoreview(ajaxviewhandler.java:131) @ org.apache.myfaces.lifecycle.restoreviewexecutor.execute(restoreviewexecutor.java:85) @ org.apache.myfaces.lifecycle.lifecycleimpl.executephase(lifecycleimpl.java:103) @ org.apache.myfaces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:76) @ javax.faces.webapp.facesservlet.service(facesservlet.java:183) @ org.apache.myfaces.webapp.myfacesservlet.service(myfacesservlet.java:103) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:298) @ org.apache.coyote.http11.http11processor.process(http11processor.java:859) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:588) @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489) @ java.lang.thread.run(unknown source) caused by: javax.faces.application.viewexpiredexception @ org.apache.myfaces.shared_impl.util.stateutils.decrypt(stateutils.java:481) ... 24 more mar 6, 2014 4:52:11 pm javax.faces.webapp._errorpagewriter handlethrowable severe: exception occurred javax.faces.application.viewexpiredexception: /register.jsfno saved view state found view identifier: /register.jsf @ org.apache.myfaces.lifecycle.restoreviewexecutor.execute(restoreviewexecutor.java:88) @ org.apache.myfaces.lifecycle.lifecycleimpl.executephase(lifecycleimpl.java:103) @ org.apache.myfaces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:76) @ javax.faces.webapp.facesservlet.service(facesservlet.java:183) @ org.apache.myfaces.webapp.myfacesservlet.service(myfacesservlet.java:103) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:298) @ org.apache.coyote.http11.http11processor.process(http11processor.java:859) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:588) @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489) @ java.lang.thread.run(unknown source) 

what problem i'm getting here???

my faces-config.xml

<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" version="1.2">  <managed-bean>     <managed-bean-name>paycloud</managed-bean-name>     <managed-bean-class>com.myapp.view.bean.simpleloginbean</managed-bean-class>     <managed-bean-scope>request</managed-bean-scope> </managed-bean>  <managed-bean>     <managed-bean-name>cartuser</managed-bean-name>     <managed-bean-class>com.myapp.webcart.domain.cartuser</managed-bean-class>     <managed-bean-scope>request</managed-bean-scope> </managed-bean>  <navigation-rule>     <from-view-id>/login.jsp</from-view-id>     <navigation-case>         <from-outcome>welcome</from-outcome>         <to-view-id>/userdetails.jsp</to-view-id>     </navigation-case>     <navigation-case>         <from-outcome>register</from-outcome>         <to-view-id>/register.jsp</to-view-id>     </navigation-case> </navigation-rule>  <navigation-rule>     <from-view-id>/register.jsp</from-view-id>     <navigation-case>         <from-outcome>reguser</from-outcome>         <to-view-id>/regsuccess.jsp</to-view-id>     </navigation-case> </navigation-rule> 

and web.xml

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="webapp_id" version="2.5"> <display-name>paycloud</display-name> <welcome-file-list>     <welcome-file>index.jsp</welcome-file> </welcome-file-list>  <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>/faces/*</url-pattern> </servlet-mapping> <context-param>     <param-name>javax.servlet.jsp.jstl.fmt.localizationcontext</param-name>     <param-value>resources.application</param-value> </context-param> <context-param>     <description>state saving method: 'client' or 'server' (=default). see jsf specification 2.5.2</description>     <param-name>javax.faces.state_saving_method</param-name>     <param-value>client</param-value> </context-param> <context-param>      <param-name>org.apache.myfaces.allow_javascript</param-name>     <param-value>true</param-value> </context-param> <context-param>     <param-name>org.apache.myfaces.pretty_html</param-name>     <param-value>true</param-value> </context-param> <context-param>     <param-name>org.apache.myfaces.detect_javascript</param-name>     <param-value>false</param-value> </context-param> <context-param>     <param-name>org.apache.myfaces.auto_scroll</param-name>     <param-value>true</param-value> </context-param> <servlet>     <servlet-name>faces</servlet-name>     <servlet-class>org.apache.myfaces.webapp.myfacesservlet</servlet-class>     <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping>     <servlet-name>faces</servlet-name>     <url-pattern>*.jsf</url-pattern> </servlet-mapping> <servlet-mapping>     <servlet-name>faces</servlet-name>     <url-pattern>*.faces</url-pattern> </servlet-mapping> <!-- defining , mapping richfaces filter --> <context-param>     <param-name>org.richfaces.skin</param-name>     <param-value>bluesky</param-value> </context-param> <filter>     <display-name>richfaces 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>  <filter>     <display-name>ajax4jsf filter</display-name>     <filter-name>ajax4jsf</filter-name>     <filter-class>org.ajax4jsf.filter</filter-class> </filter> <filter-mapping>     <filter-name>ajax4jsf</filter-name>     <servlet-name>faces servlet</servlet-name>     <dispatcher>forward</dispatcher>     <dispatcher>request</dispatcher>     <dispatcher>include</dispatcher> </filter-mapping> </web-app> 


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -