tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50318] New: NPE when opening Session Details page for an expired session
Date Mon, 22 Nov 2010 21:20:45 GMT

           Summary: NPE when opening Session Details page for an expired
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Manager

Running current trunk at r1037887

1. In default web.xml set <session-timeout> to some small value, e.g. 1 minute
2. Create a session, e.g. in the examples webapp.
3. Go to the manager webapp and display the list of sessions.
4. Do not close the page. Wait for several minutes, so that session expires.
5. Click on the session id, to open the Session Details page for the session.
6. Actual result: The page does not open, but the default page (the list of
webapps) is shown, with a message about an NPE.
Expected result: I would be nice to display a blank Session Details page with a
message and with the "Return to session list" button.

org.apache.jasper.JasperException: An exception occurred processing JSP page
/WEB-INF/jsp/sessionDetail.jsp at line 35

32:    String version = (String) request.getAttribute("version");
33:    ContextName cn = new ContextName(path, version);
34:    Session currentSession =
35:    HttpSession currentHttpSession = currentSession.getSession();
36:    String currentSessionId = JspHelper.escapeXml(currentSession.getId());
37:    String submitUrl = JspHelper.escapeXml(response.encodeURL(
38:            ((HttpServletRequest) pageContext.getRequest()).getRequestURI()

Line 35 is "currentSession.getSession()"

>From logs:
Caused by: java.lang.NullPointerException
    at org.apache.jasper.runtime.HttpJspBase.service(
    at javax.servlet.http.HttpServlet.service(
    ... 33 more

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message