Kumar Ashish created MYFACES-3633:
-------------------------------------

             Summary: View Expired Exception on heavyload during performance 
test
                 Key: MYFACES-3633
                 URL: https://issues.apache.org/jira/browse/MYFACES-3633
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.1.5
         Environment: Weblogic 10.3.4 , hp unix , 
            Reporter: Kumar Ashish


Hi,

We are currently doing performance testing for our application for 500 - 2500 
users . 
We are using RPT tool for testing.We are getting too many view expired 
exception in the logs
under heavy load. If the load is below 250 then this does not appears.We have a 
login page where 
the user is authenticated and the home page is displayed.After that we have 
logout which goes to another
logout page . In logout page we have inputhidden where we call a method to 
invalidate 
session. The code of logout.xhtml and the method for inputhidden field is as 
follows .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml";
xmlns:h="http://java.sun.com/jsf/html";
xmlns:f="http://java.sun.com/jsf/core";
xmlns:ui="http://java.sun.com/jsf/facelets";>
<h:head>
<h:outputStylesheet library="css" name="ultimatix.css" />
</h:head>
<h:body>
<h:form>        
        <table border="0" cellpadding="5" width="700" align="center">
                <tr>

                </tr>
                
                <tr>
                        <td align="center"><font style="color: crimson; 
font-size: small; font-weight: bold; text-align: center">
                                </font></td>
                </tr>
                <tr>
                        <td align="center"><font style="color: cornflowerblue; 
font-size: small; font-weight: normal; text-align: center">Please close this 
window and Open link again
                                </font></td>
                </tr>
                <tr>
                        <td align="center"><input align="middle" type="button" 
value="Close Window" onclick="javascript:window.close();" class="buttonText" />
        </td>
                </tr>
        </table>
        <h:inputHidden value="#{HeavyLoadBean.heavyLoad}"></h:inputHidden>

        </h:form>
</h:body>
</html>

Code for session invalidate .

public class HeavyLoadBean {
        private String heavyLoad = null;
        
        public String getHeavyLoad(){           
                HttpServletRequest req= 
(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
                weblogic.servlet.security.ServletAuthentication.logout(req);
                
weblogic.servlet.security.ServletAuthentication.invalidateAll(req);
                return "";
        }
        public void setHeavyLoad(String str){
                
        }


We have also tried removing the session invalidate calls. But still same error 
comes. We have
 set state saving method as client . 

Please suggest how we can avoid this error. We dont want to catch and handle it 
, rather we want to prevent it from occurring.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to