tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sampige, Srinivas" <Srinivas.Samp...@PSS.Boeing.com>
Subject Bug in Tomcat3.2.1? - forwarding HTTP request from a Servlet to a JSP
Date Wed, 18 Jul 2001 00:32:55 GMT
Hi 
 Iam using tomcat 3.2.1 and i have a servlet "PronServlet" that extends from HttpServlet .
Now i have a servlet "LogonServlet" that extends from servlet "PronServlet" (which has got
common functionality like checking for a valid session ;has common methods that perform functionality
like forwarding HTTP request to another url). In "LogonServlet" i have some code that does
some processing and finally forwards the HTTP request to a JSP .Iam getting an error which
iam pasting below.I ran the same application on JRun and it works fine .I noticed that if
i removed the subclassing and instead subclassed LogonServlet directly from HttpServlet then
the application works fine by forwarding the request to the next JSP .Here is the console
output .Iam attaching the source code of
 PronServlet and LogonServlet .Anybody from the Tomcat dev team any ideas......?

----------------------------------------------------------------------------------------------------------
Creating a session for the user...
Forwarding request to the MENU page...
2001-07-17 02:17:22 - Ctx( /pron ): Exception in: R( /pron + /webUi/pronMenu.jsp + null) -
java.lang.
IllegalArgumentException: Short Read
        at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238)
        at org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101)
        at org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:691)
        at org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
        at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
        at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRequestFacade.ja
va:222)
        at org.apache.jasper.servlet.JspServlet.preCompile(JspServlet.java:326)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:370)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
        at com.boeing.pron.servlets.LogonServlet.handleApplicationEvent(LogonServlet.java:61)
        at com.boeing.pron.servlets.PronServlet.service(PronServlet.java:56)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandl
er.java:210)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)
--------------------------------------------------------------------------------------------------------------------------

 <<LogonServlet.java>>  <<PronServlet.java>> 

Mime
View raw message