Discussions

EJB design: Weblogic 8.1.4 Server slow down suddenly

  1. Weblogic 8.1.4 Server slow down suddenly (4 messages)

    We are using BEA Weblogic 8.1.4 platform on Windows for our project.On the client production site, the system suddenly gets slow and then the Weblogic has to be forcefully restarted.

    Following exception occurs

    ####<Feb 7, 2006 8:14:16 AM PST> <Error> <HTTP> <ysi_cacrm4> <ysicrm4> <ExecuteThread: '26' for queue: 'weblogic.kernel.Default'> < <BEA-101020> <[ServletContext(id=3483042,name=crmphase2,context-path=/crmphase2)] Servlet failed with Exception
    java.lang.IllegalStateException: HttpSession is invalid
    at weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:418)
    at jsp_servlet._jsp.__container._jspService(__container.java:315)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)


    Any help is appreciated.
    Thanks
    Ashish
  2. Hi, my english is poor.. but I can say some words, so!!!
    it may be a problema in code, can you reply and put the class code the got this exception, like that we can help you easily.. bye!!

    Hendris
  3. Hi Ashish ,
       This problem got fixed in WL8.1 SP3. For more information refer following link

     http://e-docs.bea.com/wls/docs81/notes/resolved_sp03.html#1829878

    The java.lang.IllegalStateException: HttpSession is invalid exception occurs in the servlet container's internal call. If other threads using the same session ID invalidate the session object during processing of ServletRequestImpl.syncSession(), an IllegalStateException may occur while calling SessionData.putValue() or SessionData.isNew().

    Ignore the IllegalStateException if the session has been invalidated by other threads.


    Let me know which service pack you are using

    Thanks,
    Lakshman
  4. "HttpSession is Invalid"[ Go to top ]

    Did anyone get around this issue with HttpSession?
    I am using Web Logic 8.1 SP4 and encounter the error below

    "java.lang.IllegalStateException: HttpSession is invalid
    at weblogic.servlet.internal.session.SessionData.getAttributeLjava.lang.String;Ljava.lang.Object(SessionData.java:418)

    Below is the code snippet which throws the error and it fails at response.sendRedirect().

    HttpServletRequest request = (HttpServletRequest context.getRequest();
    HttpSession session = (HttpSession)request.getSession();
    session.invalidate();

    HttpServletResponse response = (HttpServletResponse)context.getResponse();
    try {
    response.sendRedirect(urlString);
    }

    Any help would be appreciated.

    Thank You.
  5. Re: "HttpSession is Invalid"[ Go to top ]

    Did anyone got the solution for Session invalid and Illegalstateexception. I dont know whether it is the reason of slowdown, but weblogic 8.1.4 gets slow down after this