https://issues.apache.org/bugzilla/show_bug.cgi?id=47395

           Summary: Dispatcher.forward and getPathInfo() != null causes
                    stack overflow
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: em...@cs-ware.de


web.xml:
----
    <servlet>
        <servlet-name>ShowFile</servlet-name>
       
<servlet-class>submissioninterface.servlets.controller.ShowFile</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>ShowFileView</servlet-name>
       
<servlet-class>submissioninterface.servlets.view.ShowFileView</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ShowFile</servlet-name>
        <url-pattern>/servlets/ShowFile/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>ShowFileView</servlet-name>
        <url-pattern>/servlets/ShowFileView</url-pattern>
    </servlet-mapping>
----

ShowFile.java contains:
request.getRequestDispatcher("ShowFileView").forward(request, response);

ShowFileView.java:
contains just a hellow-world-output.

Open /servlets/ShowFile/sth in browser and get the stack overflow. Changing
"/servlets/ShowFileView" to "/servlets/ShowFileView/*" didn't help.

Error:
exception

javax.servlet.ServletException: Servlet execution threw an exception
submissioninterface.servlets.controller.ShowFile.doGet(ShowFile.java:15)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
submissioninterface.servlets.controller.ShowFile.doGet(ShowFile.java:15)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
...

root cause
java.lang.StackOverflowError
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to