Custom exception handler does not get wrapped request.
------------------------------------------------------
Key: STS-383
URL: http://mc4j.org/jira/browse/STS-383
Project: Stripes
Issue Type: Bug
Components: ActionBean Dispatching
Affects Versions: Release 1.4.3
Environment: Tomcat 5.5.12, Windows XP, Java 5
Reporter: Brian Nichols
Assigned To: Tim Fennell
My custom exception handler receives the unwrapped request as shown in
StripesFilter.java.
StripesRequestWrapper request = wrapRequest(httpRequest);
....
catch (Throwable t) {
this.configuration.getExceptionHandler().handle(t, httpRequest,
httpResponse);
}
The problem occurs when I use the unwrapped request to forward to a source page
which requires Stripes processing. Stripes then throws the following
exception.
java.lang.IllegalStateException: A request made it through to some part of
Stripes without being wrapped in a StripesRequestWrapper. The StripesFilter is
responsible for wrapping the request, so it is likely that either the
StripesFilter is not deployed, or that it's mappings do not include the
DispatcherServlet _and_*.jsp. Stripes does not requiire that the Stripes
wrapper is the only request wrapper, or the outermost; only that is is present.
at
net.sourceforge.stripes.controller.StripesRequestWrapper.findStripesWrapper(StripesRequestWrapper.java:71)
StripesFilter should provide the wrapped request when possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development