Re: [Strutsgenerator-user] argument type mismatch
Brought to you by:
javanovic
From: Bernardinus <bbe...@gm...> - 2003-04-21 02:16:44
|
Thanks Juan for trying :) Well, over-writting every single date-related mutator for a generated code seems quite a messy approach. But I don't have a better alternative, though :( Could you log this as bug into KS' sf bug tracker? So it may not lost in mailing list. Others have noticed this sometime ago, but it doesn't seem to have fixed :( Could you also notice KS mailing list at jav...@ya.... That one seems to be more active than the one provided by SF. cheers, /bernard ----- Original Message ----- From: "Juan Pablo Morales" <ju_...@ho...> To: <str...@li...> Sent: Thursday, April 17, 2003 12:12 PM Subject: Re: [Strutsgenerator-user] argument type mismatch > 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(PropertyUtilsBe a > >n.java:1767) > > > > > >>22:36:47,601 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUt i > >lsBean.java:1748) > > > > > >>22:36:47,603 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUt i > >lsBean.java:1643) > > > > > >>22:36:47,604 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBea n > >.java:1672) > > > > > >>22:36:47,606 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1 0 > >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 > >> > >> > >> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Strutsgenerator-user mailing list > Str...@li... > https://lists.sourceforge.net/lists/listinfo/strutsgenerator-user > > |