Hello to all.

Standard MVC design with JRun on NT.

We are using the following code to implement security -
//start
    if(session.getAttribute("com.commertech.web.user") == null) {
     response.sendRedirect(request.getScheme() + "://"
           + request.getServerName()
           + ":" + request.getServerPort()
           + request.getContextPath()
          + "/login.jsp?log_err=1" );
    }
//end
This results in the following error being thrown by the application
server -
//start
06/06 08:10:06 warning (file) Couldn't parse date header.
[java.lang.IllegalArgumentException: Unparseable date:
java.lang.IllegalArgumentException: Unparseable date: " "
 at allaire.jrun.ServletConnection.getDateHeader(ServletConnection.java,
Compiled Code)
 at java.lang.Exception.<init>(Exception.java, Compiled Code)
 at java.lang.RuntimeException.<init>(RuntimeException.java, Compiled
Code)
 at
java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java,
Compiled Code)
 at allaire.jrun.ServletConnection.getDateHeader(ServletConnection.java,
Compiled Code)
 at allaire.jrun.file.FileServlet.service(FileServlet.java, Compiled
Code)
 at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java,
Compiled Code)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
 at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
 at
allaire.jrun.servlet.JRunRequestDispatcher.include(JRunRequestDispatcher.java,
Compiled Code)
 at allaire.jrun.jsp.JRunPageContext.include(JRunPageContext.java,
Compiled Code)
 at jrun__index2ejspa._jspService(jrun__index2ejspa.java:67)
//end

Sometimes I then get an Out-of-memory exception (though I have plenty
available)
//start
06/06 07:58:10 error (jcp) jcp-14 caught Throwable while swapping,
exiting [java.lang.OutOfMemoryError]
java.lang.OutOfMemoryError
 at allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java,
Compiled Code)
 at allaire.jrun.jrpp.ProxyEndpoint.readString(ProxyEndpoint.java,
Compiled Code)
 at allaire.jrun.jrpp.ProxyEndpoint.readRequest(ProxyEndpoint.java,
Compiled Code)
 at allaire.jrun.jrpp.ProxyService.swapRunnable(ProxyService.java,
Compiled Code)
 at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java, Compiled Code)

 at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
//end

or this
//
06/06 08:10:06 error (jcp) jcp-15 caught Throwable while swapping,
exiting [java.lang.NullPointerException]
java.lang.NullPointerException
 at allaire.jrun.jrpp.ProxyEndpoint.parseHeaders(ProxyEndpoint.java,
Compiled Code)
 at allaire.jrun.jrpp.ProxyEndpoint.readRequest(ProxyEndpoint.java,
Compiled Code)
 at allaire.jrun.jrpp.ProxyService.swapRunnable(ProxyService.java,
Compiled Code)
 at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java, Compiled Code)

 at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
//

So it looks like the container cannot parse the date header. Why? I'm
not so sure.

Help is, as always, appreciated.

Erik

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to