Issues with the Invoker Servlet?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with the Invoker Servlet?

Jay Dolan
Hi,

Until very recently, a web application I maintain was
using org.mortbay.jetty.servlet.Invoker to dispatch
requests.  After migrating to Jetty 5.0 several months
ago, I started to notice erroneous HTTP 404 errors.

Basically, what seems to happen is that a valid 404
error will be thrown from a bad request.  However,
subsequent requests will see this same HTTP error
result when submitting perfectly valid requests.

e.g.,

client1, http://host/bin/SomeImaginaryServlet?  =>
  404, SomeImaginaryServlet not found

client2, http://host/bin/SomeRealServlet?  =>
  404, SomeImaginaryServlet not found

Restarting the application fixes the problem, but this
is, of course, not a practical solution.  Also, I
guess it's worth mentioning that this problem seems to
affect Servlets on a 1:1 basis.  That is, an erroneous
404 will only disable one valid Servlet (seems like
whichever one is invoked *2* requests after the
initial 404 is the one that gets robbed).  Most other
Servlets remain accessible.

Anyway, I've circumvented the problem for now with
static Servlet mappings.  Luckily, my Servlet classes
are bundled into .jar files, and so traversing the
.jars on startup and creating maps for each class
isn't that ugly.  Well, alright.  Maybe it is.  But it
works.

Please CC me on any replies, and thank you!  In all,
I'm most pleased with Jetty.

Jay Dolan
Software Engineer, Systems Analyst
Windmill Cycles, Inc.
508.999.4000


               
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail 


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Issues with the Invoker Servlet?

Greg Wilkins-5

Jay,

I can't reproduce this.

Is this under load?
can you reproduce this using just the jetty demo or template webapps?

cheers



Jay Dolan wrote:

> Hi,
>
> Until very recently, a web application I maintain was
> using org.mortbay.jetty.servlet.Invoker to dispatch
> requests.  After migrating to Jetty 5.0 several months
> ago, I started to notice erroneous HTTP 404 errors.
>
> Basically, what seems to happen is that a valid 404
> error will be thrown from a bad request.  However,
> subsequent requests will see this same HTTP error
> result when submitting perfectly valid requests.
>
> e.g.,
>
> client1, http://host/bin/SomeImaginaryServlet?  =>
>   404, SomeImaginaryServlet not found
>
> client2, http://host/bin/SomeRealServlet?  =>
>   404, SomeImaginaryServlet not found
>
> Restarting the application fixes the problem, but this
> is, of course, not a practical solution.  Also, I
> guess it's worth mentioning that this problem seems to
> affect Servlets on a 1:1 basis.  That is, an erroneous
> 404 will only disable one valid Servlet (seems like
> whichever one is invoked *2* requests after the
> initial 404 is the one that gets robbed).  Most other
> Servlets remain accessible.
>
> Anyway, I've circumvented the problem for now with
> static Servlet mappings.  Luckily, my Servlet classes
> are bundled into .jar files, and so traversing the
> ..jars on startup and creating maps for each class
> isn't that ugly.  Well, alright.  Maybe it is.  But it
> works.
>
> Please CC me on any replies, and thank you!  In all,
> I'm most pleased with Jetty.
>
> Jay Dolan
> Software Engineer, Systems Analyst
> Windmill Cycles, Inc.
> 508.999.4000
>
>
>
> __________________________________
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail 
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Issues with the Invoker Servlet?

Jay Dolan
In reply to this post by Jay Dolan

--- Greg Wilkins <[hidden email]> wrote:

>
> Jay,
>
> I can't reproduce this.
>
> Is this under load?
> can you reproduce this using just the jetty demo or
> template webapps?
>
> cheers

Mmh, probably not, heh :)  I'm really pressed for
development time right now.  If it's working fine for
you, I'd chalk it up to quirky behavior due to one or
more of the following:

1)  The fact that I was running 3 Servlet containers
(HttpServers) on one host, each only mapping the
Invoker.
2)  Each Invoker was responsible for dispatching
approximately 30-50 Servlets.
3)  I have a custom HttpHandler in place for
IP/hostname auth.  While it appears to adhere to the
Jetty API, it could do Something Stupid(tm) and
confuse the Server/Container.
4)  I'm still compiling against and running on J2EE
1.3.1, as 1.4.x exhibited some broken javax.mail
classes.

If you do not see any obvious bugs with the Invoker, I
can accept that the problems might have been of my own
fault.  Thank you for looking into it.

Jay

Jay Dolan
Software Engineer, Systems Analyst
Windmill Cycles, Inc.
508.999.4000


               
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss