This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes multiple file upload and  IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "multiple file upload and  IllegalArgumentException" Watch "multiple file upload and  IllegalArgumentException" New topic

multiple file upload and IllegalArgumentException

ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
i am facing some problem while uploading multiple files

attributes in my form bean
private Collection carImages;
//getters and setters

i tried with FormFile array , also with ArrayList but it throws me following exception

java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(
at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(
at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(
at org.apache.commons.beanutils.BeanUtilsBean.populate(
at org.apache.commons.beanutils.BeanUtils.populate(

i tried to post my jsp code but it creates problem while posting hence

view related code is at this

looking for earliest help
[ November 26, 2007: Message edited by: ganesh pol ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Please read this thread. I believe it may give you the insights you need to solve your problem.

Consultant, Sima Solutions
I agree. Here's the link:
subject: multiple file upload and IllegalArgumentException
It's not a secret anymore!