Hi Christoph,
In pre-6.1 versions of ULC, java.sql.Date was accepted as possible
value for ULCDateDataType , but the receiver side changed anyway from
java.sql.Date to java.util.Date.
With the introduction of the coders, a more performant ULC
marshalling mechanism, java.sql.Date and java.util.Date cannot be
mixed anymore. Only java.util.Date is supported as default. So, what
you need is to transform yourself java.sql.Date into java.util.Date.
If, instead, you really need all java.sql.Date information on client
and server , you can specify a coder for it (chapter 4.4. of ULC
Extension Guide). As I said, because in the previous version
java.sql.Date was received as java.util.Date, and so you did not use
further information, you probably just need to treat it as
java.util.Date.
Best regards
Sandro
On Jun 1, 2006, at 9:29 AM, Christoph Bucher wrote:
Hi,
after migrating from ulc 6.0.4 to 6.1 my application crashes when
trying to display
an ULCDateDataType. Before I analyze the problem further Canoo
might give me
a hint based upon the following stack trace:
13 01.06.2006 09:15:53.369 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:79)
at java.lang.Thread.run(Thread.java:595)
Caused by:
com.ulcjava.base.shared.internal.IllegalArgumentException: No coder
registered for class java.sql.Date
at com.ulcjava.base.shared.internal.UlcObjectOutputStream.a
(UlcObjectOutputStream.java:102)
at
com.ulcjava.base.shared.internal.UlcObjectOutputStream.writeObject
(UlcObjectOutputStream.java:19)
at
com.ulcjava.base.shared.internal.UlcObjectOutputStream.writeObject
(UlcObjectOutputStream.java:72)
at com.ulcjava.base.shared.internal.Request.writeRequests
(Request.java:0)
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:79)
at java.lang.Thread.run(Thread.java:595)
]
14 01.06.2006 09:15:53.384 800 INFO Thread[AWT-
EventQueue-1,6,main] com.ulcjava.base.client.UISession d ENTRY
[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:79)
at java.lang.Thread.run(Thread.java:595)
Caused by:
com.ulcjava.base.shared.internal.IllegalArgumentException: No coder
registered for class java.sql.Date
at com.ulcjava.base.shared.internal.UlcObjectOutputStream.a
(UlcObjectOutputStream.java:102)
at
com.ulcjava.base.shared.internal.UlcObjectOutputStream.writeObject
(UlcObjectOutputStream.java:19)
at
com.ulcjava.base.shared.internal.UlcObjectOutputStream.writeObject
(UlcObjectOutputStream.java:72)
at com.ulcjava.base.shared.internal.Request.writeRequests
(Request.java:0)
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:79)
at java.lang.Thread.run(Thread.java:595)
Thanks a lot
-- Christoph
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer