Hi,
maybe I've some more ideas about this problem.
With the simple code above it works; but I've a bean with several
field. For example
BeanExample
private long id;
private Date date;
private String text;
This bean has getter and setter; when I get the value of date's field
I print his class:
Yes,
if I comment the line date.setHours(13); it works!!!
Thanks!
On 3 Gen, 22:38, Y2i yur...@gmail.com wrote:
You are using java.util.Date because if you used java.sql.Date your
example would not compile.
does your example work if you comment out the line below?
// date.setHours(13);
On
date.setHours has been deprecated since Java 1.1
On Jan 5, 2:42 am, bond daniele.re...@gmail.com wrote:
Yes,
if I comment the line date.setHours(13); it works!!!
Thanks!
On 3 Gen, 22:38, Y2i yur...@gmail.com wrote:
You are using java.util.Date because if you used java.sql.Date your
Yes, it's deprecated but is the only manner to set the hour on the
client with GWT.
Daniele
On 5 Gen, 16:34, smida02 daleesm...@gmail.com wrote:
date.setHours has been deprecated since Java 1.1
On Jan 5, 2:42 am, bond daniele.re...@gmail.com wrote:
Yes,
if I comment the line
Just copied and tested above code in 2.1.1 and works fine in
development mode.
This is what I said earlier: the example also works for me in GWT
2.1.1...
Looking at the exception, you are using the setHours() method in the
sql Date object...
But if I replace java.util.Date with
Hi,
I'm usign java.util.Date!!! So the dafult constructor is present.
My IDE import java.util and not java.sql package.
Any ideas?
Thanks!
On 30 Dic 2010, 22:49, Y2i yur...@gmail.com wrote:
java.sql.Date does not have a default constructor, so the example
won't compile; it must be something
You are using java.util.Date because if you used java.sql.Date your
example would not compile.
does your example work if you comment out the line below?
// date.setHours(13);
On Jan 3, 1:16 pm, bond daniele.re...@gmail.com wrote:
Hi,
I'm usign java.util.Date!!! So the dafult constructor is
Hi,
with the last version of GWT (2.1.1); in the client when I'm using
this code:
Date date = new Date();
date.setHours(13);
date.setMinutes(00);
throw this exception:
java.lang.IllegalArgumentException: null
at java.sql.Date.setHours(Unknown Source)
I think that the problem is linked to
Is this error happing in old code or newly created?
Check the package name in the import of the file, there is a chance
your IDE auto-imported class Date not from java.util but from java.sql
package.
On Dec 31, 2:17 am, bond daniele.re...@gmail.com wrote:
Hi,
with the last version of GWT
java.sql.Date does not have a default constructor, so the example
won't compile; it must be something different.
BTW, I copied the three lines above to my client code: there is no
problem with compiling and running it using java.util.Date and GWT
2.1.1.
On Dec 30, 1:31 pm, Slava Lovkiy
10 matches
Mail list logo