RestyGWT compiler parses wrong classes

86 views
Skip to first unread message

magnus....@raybased.com

unread,
Dec 8, 2016, 1:07:43 AM12/8/16
to RestyGWT
I get this error when calling a REST-service:

[INFO]       Compiling module com.raybased.gwt.configtool.ConfigTool
[INFO]          Adding '20' new generated units
[INFO]             See snapshot: C:\Users\mp\AppData\Local\Temp\open.java.sql.Timestamp_Generated_JsonEncoderDecoder_6700227881353607446.java
[INFO]             Ignored 1 unit with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO]          [ERROR] Errors in 'C:\Users\mp\AppData\Local\Temp\gwt-codeserver-8873452864313505328.tmp\com.raybased.gwt.configtool.ConfigTool\compile-2\gen\open\java\sql\Timestamp_Generated_JsonEncoderDecoder_.java'
[INFO]             [ERROR] Line 29: The constructor Timestamp() is undefined
[INFO]             See snapshot: C:\Users\mp\AppData\Local\Temp\open.java.sql.Timestamp_Generated_JsonEncoderDecoder_2607004013566168451.java
[INFO]          Tracing compile failure path for type 'open.java.sql.Timestamp_Generated_JsonEncoderDecoder_'
[INFO]             [ERROR] Errors in 'C:\Users\mp\AppData\Local\Temp\gwt-codeserver-8873452864313505328.tmp\com.raybased.gwt.configtool.ConfigTool\compile-2\gen\open\java\sql\Timestamp_Generated_JsonEncoderDecoder_.java'
[INFO]                [ERROR] Line 29: The constructor Timestamp() is undefined
[INFO]          [ERROR] Hint: Check that the type name 'open.java.sql.Timestamp_Generated_JsonEncoderDecoder_' is really what you meant
[INFO]          [ERROR] Hint: Check that your classpath includes all required source roots
[INFO]       [ERROR] Compiler returned false

How can i tell the compiler to ignore the Timestamp-class (which is used by another REST-service) ?
best regards, Magnus

Edson Richter

unread,
Jun 19, 2017, 10:27:51 AM6/19/17
to RestyGWT
As far as I can read in the error log, you have a method that returns a java.sql.Timestamp, and this class has no public constructor.
I think you should not return or receibe java.sql.Timestamp in any methods. You have to encapsulate it as java.util.Date, and it should work fine.
Would that sounds reasonable?

Regards,

Edson

Magnus Persson

unread,
Jun 19, 2017, 1:17:35 PM6/19/17
to rest...@googlegroups.com
Ok, thanks. But sql.Timestamp is different from java.util.Date. They
differ in timezone information.

Regards, Magnus
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "RestyGWT" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/restygwt/51gm1z_uyME/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> restygwt+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages