Hi Paul,

You must transform your java.sql.Date into a java.util.Date :


import java.util.Date;

...
Date date = new Date(resultSet.getDate("DATE_FIELD").getTime());
...

Kind regards,

Alberto A.Smulders
HostDat Lda. - Portugal

-------- Original-Nachricht --------
Datum: Fri, 25 Aug 2006 11:28:37 +0200 (MEST)
Von: [EMAIL PROTECTED]
An: [email protected]
Betreff: [ULC-developer] Exception - java.sql.Timestamp

> Hi I am getting the following exception when receiving a
> java.sql.Timestamp from the database and populating it into a ULCTextField. 
> The population
> process is functioning correctly so I am unsure where this error is coming
> from. Have you ever seen this before? Can you give me some guidance on where
> I can find it?
> 
> Thanks 
> 
> Paul Harrison
> 
> 1      25.08.2006 11:24:38.941        1'000   SEVERE  Thread[ULC Communication
> Controller Thread,6,main]     com.ulcjava.base.client.UISession$k_    run     
> exception
> occured       [com.ulcjava.base.client.ConnectorException: error while 
> sending requests
>       at
> com.ulcjava.base.development.DevelopmentConnector.sendRequests(DevelopmentConnector.java:5)
>       at com.ulcjava.base.client.UISession$k_.run(UISession$k_.java:107)
>       at java.lang.Thread.run(Thread.java:568)
> Caused by: com.ulcjava.base.shared.internal.IllegalArgumentException: No
> coder registered for class java.sql.Timestamp
>       at
> com.ulcjava.base.shared.internal.UlcObjectOutputStream.a(UlcObjectOutputStream.java(Inlined
>  Compiled Code))
>       at
> com.ulcjava.base.shared.internal.UlcObjectOutputStream.writeObject(UlcObjectOutputStream.java(Compiled
>  Code))
>       at
> com.ulcjava.base.shared.internal.UlcObjectOutputStream.writeObject(UlcObjectOutputStream.java(Compiled
>  Code))
>       at
> com.ulcjava.base.shared.internal.Request.writeRequests(Request.java:11)
>       at
> com.ulcjava.base.development.DevelopmentConnector.a(DevelopmentConnector.java:9)
>       at
> com.ulcjava.base.development.DevelopmentConnector.sendRequests(DevelopmentConnector.java:16)
>       at com.ulcjava.base.client.UISession$k_.run(UISession$k_.java:107)
>       at java.lang.Thread.run(Thread.java:568)
> _____________________________________________________________
> NEU: Ihre Photos online verwalten, mit anderen teilen und die besten
> Bilder gleich entwickeln lassen - GRATIS für den 1. Monat (exkl. Entwicklung)
> www.sunrise.ch/photoalbum
> _______________________________________________
> ULC-developer mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/ulc-developer

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to