Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[STRUTS]: ServletException: BeanUtils.populate

843841Dec 12 2003 — edited Feb 28 2007
I have a form to upload files and everything work as expected.
The problem is when I submit the form and the file field is empty.
This is the error i get:

javax.servlet.ServletException: BeanUtils.populate
... [stack trace] ...

root cause
java.lang.IllegalArgumentException: argument type mismatch
... [stack trace] ...

The file must be an optional field, even though i haven't done the validation yet, so all fields can be left blank.
I don't know how to fix this problem.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2007
Added on Dec 12 2003
3 comments
401 views