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