tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: java.lang.StackOverflowError in ApplicationHttpRequest.setAttribute Tomcat 4.0.nightly build (20010503)
Date Thu, 03 May 2001 18:42:19 GMT
On Thu, 3 May 2001, Ana wrote:

> Hi,
> We think we have discovered an error in Tomcat 4.0.nightly build 
> (20010503). We call the forward method of the RequestDispatcher from a 
> servlet. Then, we call the setAttribute method of the request object of the 
> included JSP. At this point a java.lang.StackOverflowError  occurs.
> Example:
> MyServlet.java:
> ...
> public void service(ServletRequest request, ServletResponse response){
> ...
> getServletConfig().getServletContext().getRequestDispatcher("MyJSP.jsp").forward(request,

> response);

NOTE:  The path here should really be "/MyJSP.jsp".  Otherwise, you should
have gotten an IllegalArgumentException instead.

> ..
> }
> MyJSP.jsp:
> ...
> request.setAttribute("MyAttribute", obj);  <-- At this point!!!!!!!!!!!!!!!!
> ...
> 
> Thank you. 
> 

I have been unable to reproduce this problem, for either forwards or
includes, to either servlets or JSP pages.  Could you try to create a
small test case that demonstrates it, and post that as a bug report to:

	http://nagoya.apache.org/bugzilla/

under product category "Tomcat 4"?

Craig McClanahan



Mime
View raw message