wood burning stoves 2.0*
The moose likes JForum and the fly likes Quick reply does not work - java.lang.ClassCastException: java.util.ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Quick reply does not work - java.lang.ClassCastException: java.util.ArrayList" Watch "Quick reply does not work - java.lang.ClassCastException: java.util.ArrayList" New topic
Author

Quick reply does not work - java.lang.ClassCastException: java.util.ArrayList

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi

i have tried integrating jforum with my webapp without SSO mech. Everything works fine except when i click on the quickreply tab
i get the error ( stack trace from the html file source code
java.lang.ClassCastException: java.util.ArrayList



it seems that that the app is not able to get the getparameter fom the webrequestcontext object

any help will be appreciated

[originally posted on jforum.net by anilhk]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
pls .. any help !!
[originally posted on jforum.net by anilhk]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Details on what you mean the statement below would be helpful. Especially, the "WITHOUT SSO" part.


i have tried integrating jforum with my webapp without SSO mech.


FWIW, this classCastException can occur if the URL contains duplicate parameters. E.g. ?x=2&x=3, which is valid in HTML (radio buttons use this). The URL parser converts them to from a single string value to an ArrayList... but if the code expect a single value then you get this error.

It might also be related to a bug in the code that causes this if the *.page URL is not a valid. See:

http://www.jforum.net/posts/preList/4885/19661.page


[originally posted on jforum.net by monroe]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Quick reply does not work - java.lang.ClassCastException: java.util.ArrayList