This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "multiple file upload and  IllegalArgumentException" Watch "multiple file upload and  IllegalArgumentException" New topic
Author

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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)

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

view related code is at this
location

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.


Merrill
Consultant, Sima Solutions
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: multiple file upload and IllegalArgumentException
 
It's not a secret anymore!