You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andrew Berman (JIRA)" <ji...@apache.org> on 2007/05/03 00:22:15 UTC
[jira] Created: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
ClassCastException in WebRequestCodingStrategy
----------------------------------------------
Key: WICKET-524
URL: https://issues.apache.org/jira/browse/WICKET-524
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.2.6
Reporter: Andrew Berman
Priority: Blocker
I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Assigned: (WICKET-524) ClassCastException in WebRequestCodingStrategy
Posted by Eelco Hillenius <ee...@gmail.com>.
What really sucks about this whole thing is that there is no unit test
for it and neither is there an example application for it - except for
signin 2, which I remember running before committing the commit (and
yes, it worked/ works). How the f am I supposed to find out I broke
something?
Eelco
On 5/3/07, Igor Vaynberg (JIRA) <ji...@apache.org> wrote:
>
> [ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Igor Vaynberg reassigned WICKET-524:
> ------------------------------------
>
> Assignee: Eelco Hillenius
>
> > ClassCastException in WebRequestCodingStrategy
> > ----------------------------------------------
> >
> > Key: WICKET-524
> > URL: https://issues.apache.org/jira/browse/WICKET-524
> > Project: Wicket
> > Issue Type: Bug
> > Components: wicket
> > Affects Versions: 1.2.6
> > Reporter: Andrew Berman
> > Assigned To: Eelco Hillenius
> > Priority: Blocker
> >
> > I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Resolved: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eelco Hillenius resolved WICKET-524.
------------------------------------
Resolution: Fixed
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assignee: Eelco Hillenius
> Priority: Blocker
> Fix For: 1.2.7
>
> Attachments: 20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
>
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499441 ]
Eelco Hillenius commented on WICKET-524:
----------------------------------------
You want to have this one JBQ? Or are there conflicting issues?
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
> Fix For: 1.2.7
>
> Attachments: 20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
>
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Andrew Berman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494816 ]
Andrew Berman commented on WICKET-524:
--------------------------------------
Here is the stacktrace. I'm still working on some code to give you, but maybe this will help in the meantime.
java.lang.ClassCastException: [Ljava.lang.String;
at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy$DecodedUrlRequest.getParameter(CryptedUrlWebRequestCodingStrategy.java:432)
at wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:161)
at wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
at wicket.Request.getRequestParameters(Request.java:163)
at wicket.RequestCycle.step(RequestCycle.java:992)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Quenot updated WICKET-524:
----------------------------------------
Attachment: 20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
Please try the attached patch. (This is a workaround)
$ cd wicket-1.2.6/wicket
$ patch < ~/20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
$ mvn install
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
> Attachments: 20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
>
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Andrew Berman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493256 ]
Andrew Berman commented on WICKET-524:
--------------------------------------
I'll see what I can do.
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493246 ]
Eelco Hillenius commented on WICKET-524:
----------------------------------------
It would help to have a unit test for this. Currently there is none, and wicket-examples has signin2 which uses CryptedUrlWebRequestCodingStrategy but doesn't fail.
Andrew, you think you could provide me with a test (attach to this issue) that proves your problem? And/ or a complete stack trace would help.
Cheers.
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499707 ]
Jean-Baptiste Quenot commented on WICKET-524:
---------------------------------------------
This is fixed by Igor already, in a similar way (but more simple) as the patch I submitted in this issue.
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assignee: Eelco Hillenius
> Priority: Blocker
> Fix For: 1.2.7
>
> Attachments: 20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
>
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Andrew Berman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493437 ]
Andrew Berman commented on WICKET-524:
--------------------------------------
I'm using the CryptURL class so the URL will just be ?x=....
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Andrew Berman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493424 ]
Andrew Berman commented on WICKET-524:
--------------------------------------
Eelco, I don't know when I can get you a unit test, but I can give you some more info. It happens on AjaxLinks and AjaxButtons and only with the Ajax stuff. When I click one of the links, it doesn't work and I get the ClassCastException, so there seems to be some sort of incompatibility between the Ajax calls and any changes that were made between 1.2.5. and 1.2.6. Hope this helps a bit.
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg reassigned WICKET-524:
------------------------------------
Assignee: Eelco Hillenius
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Andrew Berman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495099 ]
Andrew Berman commented on WICKET-524:
--------------------------------------
The patch works. Once I get some time I'll try to write up a test class which can replicate the issue, I hope.
Thanks!
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
> Attachments: 20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
>
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw updated WICKET-524:
--------------------------------
Fix Version/s: 1.2.7
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
> Fix For: 1.2.7
>
> Attachments: 20070511-wicket126-CryptedUrlWebRequestCodingStrategy-StringArray.txt
>
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-524) ClassCastException in
WebRequestCodingStrategy
Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493436 ]
Jean-Baptiste Quenot commented on WICKET-524:
---------------------------------------------
Can you please provide the requested URL? Are there duplicated parameters? If this is the case it should not happen.
> ClassCastException in WebRequestCodingStrategy
> ----------------------------------------------
>
> Key: WICKET-524
> URL: https://issues.apache.org/jira/browse/WICKET-524
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.6
> Reporter: Andrew Berman
> Assigned To: Eelco Hillenius
> Priority: Blocker
>
> I upgraded to 1.2.6 and am getting a ClassCastException on line 161 of WebRequestCodingStrategy. When it calls request.getParameter(BEHAVIOR_ID_PARAMETER_NAME) it is expecting a String, but it is returning a String array so I get a classcastexception. I am using CryptedUrlWebRequestCodingStrategy to build the URLs. The actual bug appears to be in the WebRequest because it casts to a String which is incorrect, since the actual parameter is a String array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.