[ http://mc4j.org/jira/browse/STS-383?page=all ]

Ben Gunter resolved STS-383.
----------------------------

    Fix Version/s: Release 1.5
       Resolution: Fixed
         Assignee: Ben Gunter  (was: Tim Fennell)

This was fixed along with STS-448.

> 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: Ben Gunter
>             Fix For: Release 1.5
>
>
> 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

        

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to