You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/03/26 04:07:24 UTC
[jira] Updated: (TAPESTRY-2001) IllegalStateException if
response.error set to other than 200
[ https://issues.apache.org/jira/browse/TAPESTRY-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-2001:
-------------------------------------------
Affects Version/s: (was: unspecified)
5.0.12
> IllegalStateException if response.error set to other than 200
> -------------------------------------------------------------
>
> Key: TAPESTRY-2001
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2001
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.12
> Environment: Win/XP Java 1.5
> Reporter: Sven Homburg
> Priority: Minor
> Attachments: ErrorStreamResponse.patch
>
>
> public class Test{
> @Inject
> private Response response;
> StreamResponse onActivate( Object[] parameters ) throws IOException{
> TextStreamResponse textStream = null;
>
> if( parameters == null || parameters.length != 2 )
> {
> textStream = new TextStreamResponse("text/html", "this page doesnt exists");
> response.sendError( 404, null );
> }
> return textStream;
> }
> }
> Error:
> ------------------------------------
> [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: STREAM
> java.lang.IllegalStateException: STREAM
> at org.mortbay.jetty.Response.getWriter(Response.java:571)
> at org.apache.tapestry.internal.services.ResponseImpl.getPrintWriter(ResponseImpl.java:47)
> at $Response_1171072b273.getPrintWriter($Response_1171072b273.java)
> at $Response_1171072b240.getPrintWriter($Response_1171072b240.java)
> at org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:58)
> at $PageResponseRenderer_1171072b261.renderPageResponse($PageResponseRenderer_1171072b261.java)
> at org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:87)
> at $PageRenderRequestHandler_1171072b25d.handle($PageRenderRequestHandler_1171072b25d.java)
> at org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:66)
> at $Dispatcher_1171072b25f.dispatch($Dispatcher_1171072b25f.java)
> at $Dispatcher_1171072b253.dispatch($Dispatcher_1171072b253.java)
> at org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:905)
> ------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org