Fw: Re: org.apache.commons.beanutils.ConversionException SqlTimestampConverter

2 messages Options
Embed this post
Permalink
Hankb

Fw: Re: org.apache.commons.beanutils.ConversionException SqlTimestampConverter

Reply Threaded More More options
Print post
Permalink
Hi Matt.
 
I now understand what you ment when you said  "java.util.Date instead of java.sql.Date?"
 
It seems that appgen generated a  java.sql.Date for the Dao. When I changed it to an java.util.Date , then there wasn't a problem with the beanutil converter
 
ps. I do not know how you can find the time and answer questions so quickly. But I very much appreciate your efforts :-)
 
Thanks 
Hank Bozic
The Law Society of Upper Canada
130 Queen Street West
Toronto, ON M5H 2N6

Email:     [hidden email]

This communication is intended for use by the individual(s) to whom it is specifically addressed and should not be read by, or delivered to, any other person. Such communication may contain privileged or confidential information. If you have received this communication in error, please notify the sender and permanently delete the communication. Thank you for your cooperation

-----Forwarded by Hank Bozic/LSUC on 11/29/2006 11:24AM -----

To: [hidden email]
From: Hank Bozic <[hidden email]>
Date: 11/29/2006 10:26AM
Subject: Re: [equinox-user] org.apache.commons.beanutils.ConversionException SqlTimestampConverter

Hi Matt.
 
could you please explain what you mean in more detail
 
I went back to appfuse and appgen and regenereted a base appfuse application and then used appgen to generate one more Dao from a sql table and integrated it into the appfuse app. All standard stuff using the ant task in appfuse/appgen
 
The new table that I generated has an sql datatime column.
 
When i run the application(with no coding changed)  it fails in org.apache.commons.beanutils with a ConversionException . What do you recommend  that I should do to patch or fix this.  I also found  this in JIRA   APF-176   -- not sure if this is the same issue.
 
 
TIA
Hank Bozic
The Law Society of Upper Canada
130 Queen Street West
Toronto, ON M5H 2N6

Email:      [hidden email]

This communication is intended for use by the individual(s) to whom it is specifically addressed and should not be read by, or delivered to, any other person. Such communication may contain privileged or confidential information. If you have received this communication in error, please notify the sender and permanently delete the communication. Thank you for your cooperation

-----"Matt Raible" <[hidden email]> wrote: -----

To: [hidden email]
From: "Matt Raible" <[hidden email]>
Date: 11/28/2006 06:19PM
Subject: Re: [equinox-user] org.apache.commons.beanutils.ConversionException SqlTimestampConverter

Have you tried using a java.util.Date instead of java.sql.Date?

Matt

On 11/28/06, Hank Bozic <[hidden email]> wrote:

> Hi
>
> Was this ever fixed  for  appfuse and ( indirectly equinox)???
> and if not, do you know an appropriate workarround ?
>
> (I used appgen to gen the code for a table with a DateTime column.)
>
> [paral] DEBUG [http-8080-Processor25] ConstituentAction.search(127) |
> Entering 'search' method
> [paral] ERROR [http-8080-Processor25]
> ActionExceptionHandler.logException(148) |
> org.apache.commons.
> beanutils.ConversionException: No value specified
>         at
> org.apache.commons.beanutils.converters.SqlTimestampConverter.convert(SqlTimestampConvert
> er.java:103)
>         at
> org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:444)
>         at
> org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:261)
>         at
> org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:114)
>         at
> com.lsuc.paralegal.util.ConvertUtil.convert(ConvertUtil.java:155)
>         at
> com.lsuc.paralegal.webapp.action.BaseAction.convert(BaseAction.java:104)
>         at
> com.lsuc.paralegal.webapp.action.ConstituentAction.search(ConstituentAction.java:131)
>         at
> com.lsuc.paralegal.webapp.action.ConstituentAction.unspecified(ConstituentAction.java:142
>
>
>
> Thanks
> Hank Bozic
> The Law Society of Upper Canada
> 130 Queen Street West
> Toronto, ON M5H 2N6
>
> Email:     [hidden email]
>
> This communication is intended for use by the
> individual(s) to whom it is specifically
> addressed and should not be read by, or delivered to,
> any other person. Such communication may
> contain privileged or confidential information.
> If you have received this communication in
> error, please notify the sender and
> permanently delete the communication. Thank you
> for your cooperation
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [hidden email] For additional
> commands, e-mail: [hidden email]


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]

--------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Kiran Karnati-2

Re: org.apache.commons.beanutils.ConversionException SqlTimestampConverter

Reply Threaded More More options
Print post
Permalink


>>>I do not know how you can find the time and answer questions so
> quickly. But I very much appreciate your efforts :-)

ya its not just you Hank Bozic ,no one who are using Appfuse and Equinox understood how could he make all this ... and ofcourse all are Appriciating his amazing talent and helping nature  ...

wish you nice time Matt ...

> -------- Original-Nachricht --------
> Datum: Wed, 29 Nov 2006 11:32:56 -0500
> Von: Hank Bozic <[hidden email]>
> An: [hidden email]
> Betreff: Fw: Re: [equinox-user] org.apache.commons.beanutils.ConversionException SqlTimestampConverter
>
> Hi Matt. I now understand what you ment when you said  "java.util.Date
> instead of java.sql.Date?" It seems that appgen generated
> a  java.sql.Date for the Dao. When I changed it to an java.util.Date ,
> then there wasn't a problem with the beanutil converter
>  ps. I do not know how you can find the time and answer questions so
> quickly. But I very much appreciate your efforts :-) Thanks Hank Bozic
> The Law Society of Upper Canada
> 130 Queen Street West
> Toronto, ON M5H 2N6
>
> Email:     [hidden email]
>
>
> This communication is intended for use by the individual(s) to whom it is specifically addressed and should not be read by, or delivered to, any other person. Such communication may contain privileged or confidential information. If you have received this communication in error, please notify the sender and permanently delete the communication. Thank you for your cooperation
>
> -----Forwarded by Hank Bozic/LSUC on 11/29/2006 11:24AM -----
>
>
> > To: [hidden email]
> > From: Hank Bozic <[hidden email]>
> > Date: 11/29/2006 10:26AM
> > Subject: Re: [equinox-user]
> > org.apache.commons.beanutils.ConversionException SqlTimestampConverter
> >
> > Hi Matt.  could you please explain what you mean in more detail  I
> went
> > back to appfuse and appgen and regenereted a base appfuse application
> and
> > then used appgen to generate one more Dao from a sql table and
> integrated
> > it into the appfuse app. All standard stuff using the ant task in
> > appfuse/appgen  The new table that I generated has an sql datatime
> > column.  When i run the application(with no coding changed)  it fails
> > in org.apache.commons.beanutils with a ConversionException . What do you
> > recommend  that I should do to patch or fix this.  I also found  
> > this in JIRA   APF-176   -- not sure if this is the same issue.
> >   TIA
> > Hank Bozic
> > The Law Society of Upper Canada
> > 130 Queen Street West
> > Toronto, ON M5H 2N6
> >
> > Email:      [hidden email]
> >
> >
> >
> This communication is intended for use by the individual(s) to whom it is specifically addressed and should not be read by, or delivered to, any other person. Such communication may contain privileged or confidential information. If you have received this communication in error, please notify the sender and permanently delete the communication. Thank you for your cooperation
> >
> > -----"Matt Raible" <[hidden email]> wrote: -----
> >
> >
> > > To: [hidden email]
> > > From: "Matt Raible" <[hidden email]>
> > > Date: 11/28/2006 06:19PM
> > > Subject: Re: [equinox-user]
> > > org.apache.commons.beanutils.ConversionException SqlTimestampConverter
> > >
> > > Have you tried using a java.util.Date instead of java.sql.Date?
> > >
> > > Matt
> > >
> > > On 11/28/06, Hank Bozic <[hidden email]> wrote:
> > > > Hi
> > > >
> > > > Was this ever fixed  for  appfuse and ( indirectly equinox)???
> > > > and if not, do you know an appropriate workarround ?
> > > >
> > > > (I used appgen to gen the code for a table with a DateTime column.)
> > > >
> > > > [paral] DEBUG [http-8080-Processor25] ConstituentAction.search(127)
> |
> > > > Entering 'search' method
> > > > [paral] ERROR [http-8080-Processor25]
> > > > ActionExceptionHandler.logException(148) |
> > > > org.apache.commons.
> > > > beanutils.ConversionException: No value specified
> > > >         at
> > > >
> > >
> org.apache.commons.beanutils.converters.SqlTimestampConverter.convert(SqlTimestampConvert
> > > > er.java:103)
> > > >         at
> > > >
> > >
> org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:444)
> > > >         at
> > > >
> > >
> org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:261)
> > > >         at
> > > >
> > >
> org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:114)
> > > >         at
> > > > com.lsuc.paralegal.util.ConvertUtil.convert(ConvertUtil.java:155)
> > > >         at
> > > >
> > >
> com.lsuc.paralegal.webapp.action.BaseAction.convert(BaseAction.java:104)
> > > >         at
> > > >
> > >
> com.lsuc.paralegal.webapp.action.ConstituentAction.search(ConstituentAction.java:131)
> > > >         at
> > > >
> > >
> com.lsuc.paralegal.webapp.action.ConstituentAction.unspecified(ConstituentAction.java:142
> > > >
> > > > > > Thanks
> > > > Hank Bozic
> > > > The Law Society of Upper Canada
> > > > 130 Queen Street West
> > > > Toronto, ON M5H 2N6
> > > >
> > > > Email:     [hidden email]
> > > >
> > > > This communication is intended for use by the
> > > > individual(s) to whom it is specifically
> > > > addressed and should not be read by, or delivered to,
> > > > any other person. Such communication may
> > > > contain privileged or confidential information.
> > > > If you have received this communication in
> > > > error, please notify the sender and
> > > > permanently delete the communication. Thank you
> > > > for your cooperation
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > [hidden email] For additional
> > > > commands, e-mail: [hidden email]
> > >
> > > --
> > > http://raibledesigns.com 
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> > --------------------------------------------------------------------- To
> > unsubscribe, e-mail: [hidden email] For
> > additional commands, e-mail: [hidden email]
> ---------------------------------------------------------------------To
> unsubscribe, e-mail: [hidden email] additional
> commands, e-mail: [hidden email]

--
Best regards,

Kiran Karnati


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]