dev@grizzly.java.net

Re: bug : Request path not in servlet context

From: Sebastien Dionne <survivant00_at_gmail.com>
Date: Wed, 3 Mar 2010 18:44:10 -0500

nope. sorry

2010/3/3 Oleksiy Stashok <Oleksiy.Stashok_at_sun.com>

> 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
>
>
>


-- 
-------------
A+
Sébastien.
Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
http://twitter.com/survivant