*
The moose likes Struts and the fly likes BeanUtils.populate error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "BeanUtils.populate error" Watch "BeanUtils.populate error" New topic
Author

BeanUtils.populate error

Tina Long
Ranch Hand

Joined: Mar 04, 2005
Posts: 36
I keep getting the following error:

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
...
java.lang.IllegalArgumentException: argument type mismatch
...

I have narrowed it down to my JSP page - I have HTML:SELECT tags - and if I take them out - everything works fine.

the code that I have in my JSP is as follows:


When I press submit - I don't even get to my action - however if I take the above code out of my JSP page - everything works fine without any errors.

Does anyone know what causes this error and what is trying to be populated?
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Is bkStyle type String in the ActionForm?


A good workman is known by his tools.
Tina Long
Ranch Hand

Joined: Mar 04, 2005
Posts: 36
yes it is
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Hmmmmm... ok. I'm still pretty sure bkStyle is causing the problem though.

Are these methods defined in the ActionForm (with proper case on the 'B')?:
getBkStyle
setBkStyle
Tina Long
Ranch Hand

Joined: Mar 04, 2005
Posts: 36
Ok - I'm an idiot....

I at one time had bkStyle as a type - ArrayList - I had changed it to a String but...didn't save the file. SO...when I looked at it - it still said String - but since it wasn't saved...Tomcat thought it was still an ArrayList.

Thanks for your help...you were right it was the type I had assigned to the bkStyle.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BeanUtils.populate error