I have an idea, but would like to see your html:form and ActionForm before I ruin my reputation with a bad mojo answer.
Send them directly to me and copy this list. Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -----Original Message----- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 7:18 AM To: Struts Users Mailing List Subject: Bothersome BeanUtils.populate exception beanUtils keeps getting its knickers in a twist when i submit a form with 2 select menus with multiple values. I've had this working before with the same version of struts and commons. Its not the action as the exception is thrown before i get that far, when i remove the menus the form submits fine. I have form properties of type arrayList. I;d expect this exception if i were to be using unsupported types but I've been setting the values with String and the form properties are also of type string. I have trouble believing that bean utils has an issue with converting Object to String when the values are copied. The exception is a typical beanutils chocolate fire guard exception. If i weren't using strings i'd understand but i am. Any insights welcomed. java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUti ls.java:1789) at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUti ls.java:1684) at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.jav a:1713) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]