You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2009/04/25 20:55:30 UTC
[jira] Resolved: (WICKET-2177) WebRequestCycle throwing a CCE when
the response is not a WebResponse
[ https://issues.apache.org/jira/browse/WICKET-2177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2177.
-----------------------------------
Resolution: Won't Fix
Assignee: Igor Vaynberg
cant move forward without the usecase
> WebRequestCycle throwing a CCE when the response is not a WebResponse
> ---------------------------------------------------------------------
>
> Key: WICKET-2177
> URL: https://issues.apache.org/jira/browse/WICKET-2177
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC3
> Environment: JDK 1.6 OSX
> Reporter: Brian Topping
> Assignee: Igor Vaynberg
>
> While working with Brix, I found a situation where a WebRequestCycle object was embedded with a StringResponse. This causes the following CCE:
> Caused by: java.lang.ClassCastException: org.apache.wicket.response.StringResponse cannot be cast to org.apache.wicket.protocol.http.WebResponse
> at org.apache.wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:108)
> at com.example.web.auth.AuthorizationStrategyImpl.isActionAuthorized(AuthorizationStrategyImpl.java:110)
> ... 59 more
> We can't avoid using a WebRequestCycle if we want to generate HTML, isn't that correct? So I guess getWebResponse needs to cast to a covariant supertype of WebResponse?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.