• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BeanUtils.populate error

 
Tina Long
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is bkStyle type String in the ActionForm?
 
Tina Long
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it is
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic