Re: [Strutsgenerator-user] argument type mismatch
Brought to you by:
javanovic
From: Juan P. M. <ju_...@ho...> - 2003-04-17 05:12:48
|
It is indeed the last build. The error can be corrected by tricking java-jdbc-beanutils in the following way: For every method that involves a Date as it's parameter the original getter and setter have to be renamed, for example, setDateDate instead os setDate, so that the original setDate can be rewritten using Strings as parameters. This fix the problem but I don't think it is a really good approach. Any ideas? thanks Juan Pablo Morales Bernardinus wrote: >Hi Juan, > >Are you using the latest build? I think there were talks on this issue back >sometime ago, and may have been fixed then. I don't know if that is the >case, but checking out cvs code may help. > >cheers, >/bernard > >----- Original Message ----- >From: "Juan Pablo Morales" <ju-...@un...> >To: <str...@li...> >Sent: Tuesday, April 15, 2003 10:52 AM >Subject: [Strutsgenerator-user] argument type mismatch > > > > >>First thanks for such a great product. >> >>I have used StrutsGenerator and have generated the whole directory from >>the database, but whenever I try to perform any operation that involves >>a date field I get the message >> >>22:36:47,594 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot >>invoke calendar.backend.model.Events.setFechaFin - argument type mismatch >>22:36:47,599 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBea >n.java:1767) > > >>22:36:47,601 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUti >lsBean.java:1748) > > >>22:36:47,603 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUti >lsBean.java:1643) > > >>22:36:47,604 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean >.java:1672) > > >>22:36:47,606 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:10 >31) > > >>22:36:47,607 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:820) > > >>22:36:47,609 ERROR [STDERR] at >>org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343) >>22:36:47,610 ERROR [STDERR] at >>calendar.backend.dao.DAO.populate(DAO.java:39) >> >> >>When I look into BeanUtils I see that it gets the date, namely >>2003-09-03 as a String, instead of as a java.util.Date. Has anybody >>experienced this problem? >> >> >>Thanks >> >>Juan Pablo Morales >> >> >> |