[
http://www.stripesframework.org/jira/browse/STS-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Fennell resolved STS-364.
-----------------------------
Resolution: Fixed
Fix Version/s: Release 1.5
Assignee: Tim Fennell
This should be fixed in 1.5 where we have a better strategy for acquiring the
expression evaluator. However, in attempting to retest this with the 1.4.3
code to reproduce the bug on Jetty 6.1.5 we could not reproduce the bug. Can
you please retest this and reopen this issue if you're still having a problem?
Thanks.
> StreamingResolution does not work under Jetty6
> ----------------------------------------------
>
> Key: STS-364
> URL: http://www.stripesframework.org/jira/browse/STS-364
> Project: Stripes
> Issue Type: Bug
> Components: ActionBean Dispatching
> Affects Versions: Release 1.4.2
> Environment: Jetty 6.1.2rc2, Servlet 2.0, JSP 2.5
> Reporter: Aaron White
> Assignee: Tim Fennell
> Fix For: Release 1.5
>
>
> I'm attempting to serve an image up via a StreamingResolution. However,
> whenever Stripes attempts to release the page context (line 238 of
> DispatcherServlet.java) Jetty throws a "java.lang.IllegalStateException:
> STREAM"
> According to my searches, this is because if any call is made to
> getWriter after getOutputStream, the servlet spec. requires Jetty to throw
> this exception. Since the streaming resolution in my case uses an
> InputStream, and somewhere deep in "releasePageContext" a call to 'getWriter'
> is made, I assume this is causing the problem.
> Sources:
>
> http://www.mortbay.org/apidocs/javax/servlet/ServletResponse.html#getWriter()
>
> Grabbing the outputstream myself does not solve the problem, as
> getWriter is still called by way of the releasePageContext.
> I can imagine the potential solution for this issue is to make the
> pageContext created on demand, that way no releasePageContext is necessary if
> no JSP was interpreted.
> - Aaron
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development