Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching _eventId throws uncaught ClassCastException if it is not a String [SPR-5349] #10022

Closed
spring-projects-issues opened this issue Nov 22, 2008 · 2 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Paul Chapman opened SPR-5349 and commented

The code in AbstractMvcView.determineEventId uses WebUtils.findParameterValue to fetch the Webflow _eventId. That code assumes it will be passed a String. If the parameter is not a String a ClassCastException is thrown.

I was supplying the eventId as a hidden field, but had erroneously supplied it twice. Thus _eventId was no longer a String but was actually multi-valued. My error certainly, but it shouldn't break the code.


Affects: 2.5.6

@spring-projects-issues
Copy link
Collaborator Author

Keith Donald commented

This is a issue with WebUtils.findParameterValue which resides in the Spring Framework project. Moving to SPR.

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This should already be fixed in 3.0 M1.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants