viewexpiredexception

ViewExpiredException after upgrade to jsf2

眉间皱痕 提交于 2019-12-06 02:23:32
问题 We recently upgraded a major platform from jsf 1.2 to 2.0. After upgrading we're getting several ViewExpiredException errors each hour. From reading up on the topic it seems that this is an expected exception when sessions expire, however we've reviewed the access logs and we are getting these exceptions even when requests are only 5 minutes apart in some cases. My questions are as follows: 1) Other than session expiration, what other conditions might cause ViewExpiredException? 2) The

Getting ViewExpiredException in clustered environment while state saving method is set to client and user session is valid

女生的网名这么多〃 提交于 2019-12-05 17:45:42
I have a JSF application that uses Mojarra 2.2.9 and is deployed on WebSphere 8.5.5.4 on clustered environement and javax.faces.STATE_SAVING_METHOD is set to client . Even though all my application beans are request scoped, sometimes when the user session is valid and the user is doing post request on a page he gets ViewExpiredException . What may be causing this issue and how can I solve it? Will changing the javax.faces.STATE_SAVING_METHOD to server solve it? If so, what is the impact of doing this on memory? Also, does this have anything to do with cluster environement and maybe there's

How to solve ViewExpiredException in JSF 1.2

社会主义新天地 提交于 2019-12-05 16:12:45
I have an application using JSF1.2 + Richfaces 3.3.3 Final, MyFaces 1.2.7, Spring + Hibernate and I get the below exception everytime when I clear the cache and cookies of the browser and login again to my application. javax.faces.application.ViewExpiredException - /app/project/index.jsf No saved view state could be found for the view identifier: /app/project/index.jsf Can anyone let me know how to solve above exception? BalusC You can solve it by setting the state saving method to client instead of server so that views are stored (in serialized form, of course) in a hidden input field of the

ViewExpiredException on every navigation after migrating from JSF 1.2 to JSF 2.0

安稳与你 提交于 2019-12-05 12:43:23
I'm attempting to migrate an existing JSF application from JSF 1.2 to JSF 2.0. I was using MyFaces 1.2.8 and want to use MyFaces 2.0.5. What I'm experiencing with MyFaces 2.0.5 is that the initially requested page will render properly, but any attempt to navigate to another page will result in a ViewExpiredException . The message is: No saved view state could be found for the view identifier: /SomePageName.jsf (where "SomePageName" is the name of the page that I am navigating away from) If I manually type the Faces-friendly URL of the page I wanted to navigate to, such as http://localhost:8080

Handle ViewExireException/ajax and display a Primefaces dialog

。_饼干妹妹 提交于 2019-12-05 05:35:57
问题 I don't redirect or forward my user to another page. So when the my SessionExpiredExceptionHandler (extends ExceptionHandlerWrapper ) handles the ViewExireException. I want the user to stay on the same page and display a PrimeFaces Dialog. For notifying that the session has expired and that the user needs to login again (dialog based). I am use Servlet 3.1 functions to login/logout user and Basic/file for auth-method to map the users to different system roles. What is happening now is that

Preventing ViewExpiredException when clicking broswer back button after session invalidation

别说谁变了你拦得住时间么 提交于 2019-12-05 04:20:23
问题 I am trying to figure out how to prevent Session Fixation on an JSF login form in Glassfish 3.1. It was easy to do with Servlets, so I am trying to do the same with JSF (based on this question: Retrieving session ID value from a JSF request): FacesContext fCtx = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) fCtx.getExternalContext().getSession(false); session.invalidate(); fCtx.getExternalContext().getSession(true); It seems to work, but when I click the browser's

Restoring request parameters in @ViewScoped bean after session expires

夙愿已清 提交于 2019-12-04 11:56:24
I have a page that has the setup as below with url like my.page.com/table.xhtml?id=123 : +----------------------------------------------+ |Meta information | |----------------------------------------------| | Search Fields Submit btn | |----------------------------------------------| | | | | | Big p:dataTable | | with rowExpansion | | | |----------------------------------------------| | Pager | +----------------------------------------------+ id=123 is the request parameter that controls the content on the result table. All actions only reload the data table using AJAX . id is loaded throught

ViewExpiredException after upgrade to jsf2

拥有回忆 提交于 2019-12-04 08:13:44
We recently upgraded a major platform from jsf 1.2 to 2.0. After upgrading we're getting several ViewExpiredException errors each hour. From reading up on the topic it seems that this is an expected exception when sessions expire, however we've reviewed the access logs and we are getting these exceptions even when requests are only 5 minutes apart in some cases. My questions are as follows: 1) Other than session expiration, what other conditions might cause ViewExpiredException? 2) The exception we're logging doesn't contain much detail about the exact condition that is causing the exception

Handle ViewExireException/ajax and display a Primefaces dialog

和自甴很熟 提交于 2019-12-03 22:15:35
I don't redirect or forward my user to another page. So when the my SessionExpiredExceptionHandler (extends ExceptionHandlerWrapper ) handles the ViewExireException. I want the user to stay on the same page and display a PrimeFaces Dialog. For notifying that the session has expired and that the user needs to login again (dialog based). I am use Servlet 3.1 functions to login/logout user and Basic/file for auth-method to map the users to different system roles. What is happening now is that the View/page get refreshed after 2 min, but the session doesn't get invalidated. That only happens the

Preventing ViewExpiredException when clicking broswer back button after session invalidation

爱⌒轻易说出口 提交于 2019-12-03 21:41:26
I am trying to figure out how to prevent Session Fixation on an JSF login form in Glassfish 3.1. It was easy to do with Servlets , so I am trying to do the same with JSF (based on this question: Retrieving session ID value from a JSF request ): FacesContext fCtx = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) fCtx.getExternalContext().getSession(false); session.invalidate(); fCtx.getExternalContext().getSession(true); It seems to work, but when I click the browser's back button and re-enter login details I get: javax.faces.application.ViewExpiredException: viewId: