I'm using the BeanUtil that came with Struts 1.1-b2 to copy one
bean to another.
The source is an ActionForm that I get in my execute() method of
my Action. The destination is a bean that I've just instantiated.
I perform the copy as follows:
BeanUtils.copyProperties(lrdto, (LoansForm)form);
and end up getting the exception that I've included below.
How can I determine which fields are mismatched?
Thanks,
Kevin
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.PropertyUtils.setSimpleProperty(PropertyUtils.java:1650)
at
org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:363)
at
org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:265)
at
com.illuminat.cml.LoanRequestSaveAction.execute(LoanRequestSaveAction.java:137)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>