does anyone recognize this error from the event log (I'm using JRun 3 and
IIS on NT):
07/17 16:11:18 error (jcp) jcp-0 caught Throwable while swapping, exiting
[java.lang.OutOfMemoryError]
java.lang.OutOfMemoryError
<<no stack trace available>>
The error is being thrown during user authentication:
Here is the breakdown of what is happening:
User tries to access /servlet/TesterServlet which requires authentication.
TesterServlet checks the session for the user object. If it finds it, great,
otherwise it forwards the request to /servlet/Login which is a form
consisting of username, password, and a hidden field containing where the
user was trying to get to in the first place (in this case
/servlet/TesterServlet). The forward is done using the RequestDispatcher.
The login form submits to itself (i.e. shows the form if the params username
and password are both null, or processes the form if they are there.),
checks to make sure the account is good, puts the user object into the
session, and redirects via response.sendRedirect() to the original url (in
this case /servlet/TesterServlet).
If I use the RequestDispatcher to do the forward from the login, everything
works, but if I use response.sendRedirect(), I get an errorin the browser
window and the event log (I want to user response.sendRedirect() because I
want the appropriate url to show in browser).
Browser error (event log error above):
Too many concurrent requests
jcp.endpoint.main.max.threads exceeded
It seems that maybe it is caught in an infinite loop (forwarding constantly
between /servlet/TesterServlet and /servlet/Login, but I can't figure out
why (nor am I positive that this is the case). The user object is in the
session the second time the page is called, so the page should just be
displayed.
Any insights would be appreciated...
--jim
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html