I got a solution for this problem. Java forum helped clearing things
up.
If anyone will have the same problem it is not GWT it is caused by
java.sql.Date construct.
http://forums.sun.com/thread.jspa?messageID=10820005#10820005

If JPA entity field is of type java.sql.Date and this field in
database holds time portion as well like in oracle date field.
java.sql.Date instance is constructed like java.util.Date causing
different behavior.


On Sep 19, 5:28 pm, MamboJumbo <[email protected]> wrote:
> Hi,
> I have DTO with field of type java.sql.Date which I Instantiate in the
> RemoteServiceServlet [MyDTO(myDate);]    (myDate is of type
> java.sql.Date)
> MyDTO implements isSerializable interface and I am supposed to get it
> back from RemoteServiceServlet, however if I don't convert myDate into
> String and then into java.sql.Date again I get RPC error in the
> client.
>
> MyDTO(myDate); > doesn't work (in the client onFailure method is
> executed).
>
> MyDTO(java.sql.Date.valueOf(myDate.toString())); does work (in the
> client onSuccess method is executed).
>
> Isn't these two date values the same? Can anyone point out why this
> error happens?
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to