-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael,

On 3/16/2009 12:48 PM, Michael Moynihan wrote:
> Does anyone know why a Struts app would go into a recursive loop trying to 
> create a session? I see the following  when the app is requested.
>  
> java.lang.StackOverflowError
> at org.apache.catalina.connector.Request.doGetSession(Request.java:2270)
> at org.apache.catalina.connector.Request.getSession(Request.java:2075)
> at 
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
> at 
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
> at 
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)
> at 
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
> at 
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)
> at 
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
> at 
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)
> at 
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
>  

This might be due to many wrappers around the request object. Each of
those HttpServletRequestWrapper objects above might actually be distinct.

Is there more of the stack trace? What filters do you have installed?

It's interesting that the top of the stack is the "real" getSession
method. Are there really hundreds of elements in the stack trace?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkm+xm0ACgkQ9CaO5/Lv0PB3+gCeOQFrCHX5oSO9l20JLrkjcSgA
p6UAn2V2wBwP0lyHj9icR+D7BmIa1mGp
=EdD7
-----END PGP SIGNATURE-----

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

Reply via email to