[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: my jsps crash when there is a garbled query string


yep - that fixed it - i had references to JSDK2.0 in my jserv.properties
and my <gnujsp>.properties files. i commented them out so now there are
just refernces to servlet-2.0 plus and its fine now. 

cheers

matthew


Carsten Heyl wrote:
> 
> Hi Matt,
> 
> I get the same effect but with jsdk 2.0 only.
> If I disable jsdk 2.0 and use servlet-2.0-plus only the
> problem vanishes.
> 
> Matt Yee-King wrote:
> 
> > hello all
> >
> > using :
> > jserv 1.1
> > gnujsp 1.0.1pre1
> > apache 1.3.12
> > suse linux 6.4PPC
> >
> > if i call my jsp with a garbled query string, e.g.
> >
> > test.jsp?someguff
> >
> > then i get the appended errors. it appears to occur at too low a level
> > to get caught in my jsp.
> >
> > is there some way of giving jserv an error page or to tell it not to
> > throw ugly errors like this onto the page?
> >
> > cheers
> >
> > matthew
> >
> > this appears in the browser:
> >
> > Exception while servicing request for /jsp/news/insert.jsp:
> >
> > java.lang.IllegalArgumentException
> >         at
> > javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:82)
> >         at org.gjt.jsp.JspServlet$Page.process(JspServlet.java:885)
> >         at org.gjt.jsp.JspServlet.xservice(JspServlet.java:550)
> >         at org.gjt.jsp.JspServlet.service(JspServlet.java:436)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
> >         at
> > org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
> >         at
> > org.apache.jserv.JServConnection.run(JServConnection.java:188)
> >         at java.lang.Thread.run(Thread.java:479)
> >
> > this appears in the log files (compounded from a couple of log
> > files...):
> >
> > [02/10/2000 17:53:33:066 GMT+00:00] gnujsp/jsp__jsp__news__insert_2ejsp:
> > init
> > [02/10/2000 17:53:35:852 GMT+00:00] gnujsp/org.gjt.jsp.JspServlet:
> > GNUJSP: unhandled exception
> > [02/10/2000 17:53:35:876 GMT+00:00] gnujsp/org.gjt.jsp.JspServlet:
> > java.lang.IllegalArgumentException
> >         at
> > javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:82)
> >         at org.gjt.jsp.JspServlet$Page.process(JspServlet.java:885)
> >         at org.gjt.jsp.JspServlet.xservice(JspServlet.java:550)
> >         at org.gjt.jsp.JspServlet.service(JspServlet.java:436)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
> >         at
> > org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
> >         at
> > org.apache.jserv.JServConnection.run(JServConnection.java:188)
> >         at java.lang.Thread.run(Thread.java:479)