Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3633

View Expired Exception on heavyload during performance test

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.1.5
    • Fix Version/s: None
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      Weblogic 10.3.4 , hp unix ,

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kumarashish26 Kumar Ashish
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: