dev@grizzly.java.net

Re: bug : Request path not in servlet context

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Wed, 03 Mar 2010 19:01:46 +0100

Hi Sebastien,

looking at on the issue tracker, where you closed the issue.
is this still relevant?

WBR,
Alexey.

On Mar 3, 2010, at 15:15 , Sebastien Dionne wrote:

> I'm looking at this class : HttpServletRequestImpl.getPathInfo()
>
> I just want to validate this :
>
> I have this :
>
>
> request.getRequestURI() = /atmosphere-rest-twitter/dispatch/twitter
>
> pathToRemove = /atmosphere-rest-twitter/dispatch/*
>
> if (path.startsWith(s)){
> String pathInfo = path.substring(s.length());
> return "".equals(pathInfo) ? null : pathInfo;
> } else {
> ... Exception
> }
>
>
> I think we should trim the wildcard and return : /twitter ? ou
> just "twitter"
>
> right ?
>
>
> the actual exception is this :
>
> GRAVE: service exception:
> java.lang.IllegalStateException: Request path not in servlet context.
> at
> com
> .sun
> .grizzly
> .http
> .servlet
> .HttpServletRequestImpl.getPathInfo(HttpServletRequestImpl.java:796)
> at
> org
> .atmosphere.cpr.AsynchronousProcessor.map(AsynchronousProcessor.java:
> 185)
> at
> org
> .atmosphere
> .cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:142)
> at
> org
> .atmosphere
> .cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:119)
> at
> org
> .atmosphere
> .container.GrizzlyCometSupport.service(GrizzlyCometSupport.java:99)
> ....
>
> --
> -------------
> A+
>
> Sébastien.
>
> Vous pouvez me suivre sur Twitter / You can follow me on Twitter : http://twitter.com/survivant