Thursday, May 31, 2018

Re: Exposing my GWT API via web/RESTful service - can it be done (easilyish)?


If yes: Is it possible to add Swagger UI for existing GWT-RPC POST requests?

No. You would need to make a REST API using the OpenAPI specification (swagger) and let that REST API call your GWT-RPC services.

GWT-RPC isn't REST / JAX-RS. 

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Errors while updating to GWT2.8.2

You may have to clean your .gwt-unitCache (it's a good idea anyway whenever your change GWT version)

On Thursday, May 31, 2018 at 12:14:42 PM UTC+2, dinesh kumar wrote:
I have updated the following jars :
    
GWT2.8.2
---------------
   gwt-dev
   gwt-user
   gwet-servlet

gxt-2.3.1a

Now I get the following error while compilation:

[ERROR] Errors in 'com/google/gwt/emul/java/util/OptionalInt.java'
     [java]          [ERROR] Line 92: The method compare(int, int) is undefined for the type Integer
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/DoubleStream.java'
     [java]          [ERROR] java.util.PrimitiveIterator.OfDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/Stream.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/BaseStream.java'
     [java]          [ERROR] java.lang.AutoCloseable cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/IntSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Double.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Long.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Map.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Appendable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/DateTimeFormatInfo.java'
     [java]          [ERROR] com.google.gwt.i18n.shared.DateTimeFormatInfo cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/LocalizedNames.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/constants/DateTimeConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/impl/LocaleInfoImpl.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/constants/NumberConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/OptionalLong.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/LongSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/NumberFormatException.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Number.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/DoubleSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/function/Predicate.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/function/BinaryOperator.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Optional.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/Collector.java'
     [java]          [ERROR] java.util.function.BinaryOperator cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/AutoCloseable.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Collection.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Set.java'
     [java]          [ERROR] java.util.Spliterator cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/shared/DateTimeFormatInfo.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/IllegalArgumentException.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/RuntimeException.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       Checked 63 dependencies for errors.

can  anyone help with this?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Exposing my GWT API via web/RESTful service - can it be done (easilyish)?

Thank you Thomas,
Is there such thing as "GWT-RPC POST" ?
If yes: Is it possible to add Swagger UI for existing GWT-RPC POST requests?

There's no such thing as "GWT-RPC REST", so no.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JavascriptObject Not Instance of Object



On Thursday, May 31, 2018 at 11:00:12 AM UTC+2, Vinod Kumar wrote:
In native methods i have to use an instance of native javascript "Object". But," GWT JavascriptObject" creates a object which is not an instance of native javascript "Object".
Please help.

You might need to use $wnd.Object. 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Exposing my GWT API via web/RESTful service - can it be done (easilyish)?



On Thursday, May 31, 2018 at 9:25:56 AM UTC+2, Konstantin Chvilyov wrote:
Hi Richard,
Have you succeed?
Is it possible to add Swagger UI for existing GWT-RPC REST requests?

There's no such thing as "GWT-RPC REST", so no.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Errors while updating to GWT2.8.2

I have updated the following jars :
    
GWT2.8.2
---------------
   gwt-dev
   gwt-user
   gwet-servlet

gxt-2.3.1a

Now I get the following error while compilation:

[ERROR] Errors in 'com/google/gwt/emul/java/util/OptionalInt.java'
     [java]          [ERROR] Line 92: The method compare(int, int) is undefined for the type Integer
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/DoubleStream.java'
     [java]          [ERROR] java.util.PrimitiveIterator.OfDouble cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/Stream.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/BaseStream.java'
     [java]          [ERROR] java.lang.AutoCloseable cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/IntSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Double.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Long.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Map.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Appendable.java'
     [java]          [ERROR] java.io.IOException cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/DateTimeFormatInfo.java'
     [java]          [ERROR] com.google.gwt.i18n.shared.DateTimeFormatInfo cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/LocalizedNames.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/constants/DateTimeConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/impl/LocaleInfoImpl.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/client/constants/NumberConstants.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/OptionalLong.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/LongSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/NumberFormatException.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/Number.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/DoubleSummaryStatistics.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/function/Predicate.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/function/BinaryOperator.java'
     [java]          [ERROR] java.util.Comparator cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Optional.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/stream/Collector.java'
     [java]          [ERROR] java.util.function.BinaryOperator cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/AutoCloseable.java'
     [java]          [ERROR] java.lang.Exception cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Collection.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/util/Set.java'
     [java]          [ERROR] java.util.Spliterator cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/i18n/shared/DateTimeFormatInfo.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/IllegalArgumentException.java'
     [java]          [ERROR] java.lang.String cannot be resolved to a type
     [java]       [ERROR] Errors in 'com/google/gwt/emul/java/lang/RuntimeException.java'
     [java]          [ERROR] java.lang.Object cannot be resolved to a type
     [java]       Checked 63 dependencies for errors.

can  anyone help with this?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

JavascriptObject Not Instance of Object

In native methods i have to use an instance of native javascript "Object". But," GWT JavascriptObject" creates a object which is not an instance of native javascript "Object".
Please help.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Wednesday, May 30, 2018

Re: Exposing my GWT API via web/RESTful service - can it be done (easilyish)?

Hi Richard,
Have you succeed?
Is it possible to add Swagger UI for existing GWT-RPC REST requests?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Tuesday, May 29, 2018

Is there a better way to detect when in SDM mode?

I guess the best solution is this:

System.getProperty("superdevmode").equals("on")

(copied from https://gitter.im/gwtproject/gwt?at=5afb220db84be71db90bf92a)

but here are other solutions as well https://stackoverflow.com/questions/26917060/detecting-super-dev-mode-from-within-gwt-app

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Is there a better way to detect when in SDM mode?

Currently we are using the following to detect when in "SDM" mode:

private static Boolean isSdm = null;
    public static boolean isSdm() {
        if (isSdm==null) {
            isSdm=false;
            GWT.log("SDM MODE: "+(isSdm=true)); // only compiles and runs when SDM is active
        }
        return isSdm;
    }

Is there a better way?

Monday, May 28, 2018

Re: XML Enternal Entity (XXE) Vurnability


On Monday, May 28, 2018 at 1:34:59 PM UTC+2, Deepak Antil wrote:
Is GWT is prone to XXE Vulnerability by default or it require any specific configuration for that?

TL;DR: No.
 
XML Prevention Sheet taking about settings for common XML parsers.
https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet

Not sure what internally configured in GWT internal used XML parsers.

GWT will (AFAIK) load and process XXEs of *.gwt.xml files when you compile, test or debug your code; but *.gwt.xml files will either be written by yourself/your team, or come from external dependencies, so you have to be just as careful as with any external code that you'll run on your machine.
com.google.gwt.xml.* or com.google.gwt.xhr.* defer to native browser APIs, so they're only vulnerable if your browser is vulnerable.
GWT does not make use of XML in its server-side code (for RPC or RequestFactory) and does not otherwise provide any XML parsing facility itself that would be vulnerable.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

XML Enternal Entity (XXE) Vurnability

Is GWT is prone to XXE Vulnerability by default or it require any specific configuration for that?

XML Prevention Sheet taking about settings for common XML parsers.
https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet

Not sure what internally configured in GWT internal used XML parsers.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Creating Key-Value Pair Javascript Object Using Java

With latest GWT you can use jsinterop-base library and then use JsPropertyMap: https://github.com/google/jsinterop-base/blob/master/java/jsinterop/base/JsPropertyMap.java

With older GWT versions you can use JSONObject from com.google.gwt.json.JSON.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Creating Key-Value Pair Javascript Object Using Java

I am converting my libgdx game into html for Facebook Instant Games. I need to create a payload of type key-value javascript.
How to create a javascript key-value pair type object using java.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Friday, May 25, 2018

Re: First experience using GWT Boot in my Java Devs Training


On Fri, May 25, 2018 at 9:17 AM Thomas Broyer <t.broyer@gmail.com> wrote:
I know about two such plugins: https://github.com/Putnami/putnami-gradle-plugin and https://github.com/steffenschaefer/gwt-gradle-plugin, though the latter is unmaintained afaict.
Fwiw, I'd start with simple JavaExec tasks and customized configs (to bring sources into the classpath), then only try to find out what more those plugins would bring me (Putnami's devmode+Jetty looks interesting).

Also, FYI, GWT 3 will come with "official" plugins for both Maven and Gradle.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First experience using GWT Boot in my Java Devs Training

I know about two such plugins: https://github.com/Putnami/putnami-gradle-plugin and https://github.com/steffenschaefer/gwt-gradle-plugin, though the latter is unmaintained afaict.
Fwiw, I'd start with simple JavaExec tasks and customized configs (to bring sources into the classpath), then only try to find out what more those plugins would bring me (Putnami's devmode+Jetty looks interesting).

Also, FYI, GWT 3 will come with "official" plugins for both Maven and Gradle.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Thursday, May 24, 2018

Re: First experience using GWT Boot in my Java Devs Training

Is there any standard Gradle Plugin for GWT?

Thomas Broyer <t.broyer@gmail.com> schrieb am Fr., 25. Mai 2018, 00:37:
I am :-)
Though I have very limited experience with GWT and Gradle.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/t7rwYbv-QRc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First experience using GWT Boot in my Java Devs Training

I am :-)
Though I have very limited experience with GWT and Gradle.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First experience using GWT Boot in my Java Devs Training

Hi,

I also think that Maven is not a bad choice for the most of projects and personally use it for all my projects. But support the Gradle is not a bad idea :) 

If you need more information about GWT + Gradle you can ask Thomas Broyer, as I know he is a big enthusiast of the Gradle.

Stas

On Thursday, May 24, 2018 at 6:00:03 PM UTC+2, Dr. Lofi Dewanto wrote:
Thanks for the comment.

I don't think that we can say that Gradle will remove Maven in the future, since Maven is also still in development. 

For many reasons it is also easier to stay with Maven. Not every projects have a high requirement for build process. So IMHO Maven is still the simplest way to build your Java project.

But it would be also nice to be able to support Gradle just like what Spring Boot has done. For this I need to know is there any standard Gradle Plugin for GWT compiler?

Thanks
Lofi

Rogelio Flores <rogelio...@gmail.com> schrieb am Do., 24. Mai 2018, 15:08:
Nice article, thanks for sharing it.

I wonder if it's time to move from maven to gradle (in general and also talking specifically about GWT Boot).


On Wednesday, May 23, 2018 at 2:24:14 PM UTC-5, Dr. Lofi Dewanto wrote:
This article is now being published by DZone: http://bit.ly/2IICra8

Enjoy and looking forward for good discussion,
Lofi

Am Freitag, 18. Mai 2018 00:30:39 UTC+2 schrieb Dr. Lofi Dewanto:
I wrote my experience using the SNAPSHOT version of GWT Boot for my internal Java Training: http://bit.ly/2L54Etr

Would like to know whether someone has the same experience?

Thanks,
Lofi

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/t7rwYbv-QRc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

I sometimes, when I'm a bit desperate, I debug the project, find some classes for the conflicting code using the "Thread.currentThread().getContextClassLoader().loadClass(...)", and use the variable inspector to find the class loader and the actual file that has been used to load the class. At least, you finally found where the hell was the cached class! ;) ... maybe the first time is a bit confusing, but after sometimes, you will solve those mixed/cached classpath problems much faster! 



On Thursday, May 24, 2018 at 9:13:04 PM UTC+2, JonL wrote:
We have seen similar issues with this when we were experimenting with some projects and upgrading to 2.8.2.  The things to double check are:

1. That there are no duplicate jars from different versions of GWT, as mentions by Thomas Broyer.
2. Delete any GWT generated folder such as the gwt-unitCache, and the script outputs in the war folder and also any GWT generated files in the temp folder.
3. If still running into problems, delete the Eclipse workspace .metadata folder, re-setup the workspace and import the existing projects into the cleaned workspace.

Due to GWT compilation caching, and Eclipse deployment caching, if files do not change during the modification process, they can still reference the the incorrect version of GWT, or the jars that are actually deployed to the location where the Jetty server is run from by eclipse may not be updated.

On Monday, May 14, 2018 at 6:06:09 AM UTC-7, Rachel wrote:
We have to move our project back to GWT 2.7 due to some java 1.8 issues. I've checked all my jar files to make sure they are 2.7 and no duplicate jars in the build path but am getting errors when I try to compile with Ant.
Any suggestions would be greatly appreciated. Thank you.

prepareGWT:

[delete] Deleting directory C:\Users\s235985\workspace\wkflw_test\Approval\gwt-unitCache

[java] Compiling module com.aep.mro.approval.approvalsystem

[java] Computing all possible rebind results for 'gwtupload.client.bundle.UploadCss'

[java] Rebinding gwtupload.client.bundle.UploadCss

[java] Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator

[java] Initializing ResourceGenerator

[java] [ERROR] Unable to determine default for GSS in UiBinder

[java] [ERROR] An internal compiler exception occurred

[java] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

[java] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)

[java] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)

[java] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)

[java] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)

[java] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)

[java] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)

[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)

[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)

[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)

[java] at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)

[java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)

[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)

[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

[java] at com.google.gwt.dev.Compiler.run(Compiler.java:206)

[java] at com.google.gwt.dev.Compiler.run(Compiler.java:158)

[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)

[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)

[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)

[java] at com.google.gwt.dev.Compiler.main(Compiler.java:127)

[java] Caused by: java.lang.NoSuchMethodError: com.google.gwt.util.tools.Utility.close(Ljava/lang/AutoCloseable;)V

[java] at com.google.gwt.resources.rg.ImageResourceGenerator.getContentLength(ImageResourceGenerator.java:623)

[java] at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:584)

[java] at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1013)

[java] at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1039)

[java] at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:419)

[java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:754)

[java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:160)

[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

[java] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:87)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:485)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:443)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:576)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:306)

[java] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:248)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] ... 40 more

[java] [ERROR] at UploadCss.java(9): GWT.create(UploadCss.class)

[java] com.google.gwt.dev.jjs.ast.JMethodCall

[java] [ERROR] at UploadCss.java(9): (UploadCss) GWT.create(UploadCss.class)

[java] com.google.gwt.dev.jjs.ast.JCastOperation

[java] [ERROR] at UploadCss.java(9): final static UploadCss INSTANCE = (UploadCss) GWT.create(UploadCss.class)

[java] com.google.gwt.dev.jjs.ast.JDeclarationStatement

[java] [ERROR] at UploadCss.java(8): {

[java] final static UploadCss INSTANCE = (UploadCss) GWT.create(UploadCss.class);

[java] }

[java] com.google.gwt.dev.jjs.ast.JBlock

[java] [ERROR] at UploadCss.java(8): {

[java] final static UploadCss INSTANCE = (UploadCss) GWT.create(UploadCss.class);

[java] }

[java] com.google.gwt.dev.jjs.ast.JMethodBody

[java] [ERROR] at UploadCss.java(8): private static final void $clinit();

[java] com.google.gwt.dev.jjs.ast.JMethod

BUILD FAILED

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Advice needed - compile error while moving back to GWT 2.7 from 2.8.2

We have seen similar issues with this when we were experimenting with some projects and upgrading to 2.8.2.  The things to double check are:

1. That there are no duplicate jars from different versions of GWT, as mentions by Thomas Broyer.
2. Delete any GWT generated folder such as the gwt-unitCache, and the script outputs in the war folder and also any GWT generated files in the temp folder.
3. If still running into problems, delete the Eclipse workspace .metadata folder, re-setup the workspace and import the existing projects into the cleaned workspace.

Due to GWT compilation caching, and Eclipse deployment caching, if files do not change during the modification process, they can still reference the the incorrect version of GWT, or the jars that are actually deployed to the location where the Jetty server is run from by eclipse may not be updated.

On Monday, May 14, 2018 at 6:06:09 AM UTC-7, Rachel wrote:
We have to move our project back to GWT 2.7 due to some java 1.8 issues. I've checked all my jar files to make sure they are 2.7 and no duplicate jars in the build path but am getting errors when I try to compile with Ant.
Any suggestions would be greatly appreciated. Thank you.

prepareGWT:

[delete] Deleting directory C:\Users\s235985\workspace\wkflw_test\Approval\gwt-unitCache

[java] Compiling module com.aep.mro.approval.approvalsystem

[java] Computing all possible rebind results for 'gwtupload.client.bundle.UploadCss'

[java] Rebinding gwtupload.client.bundle.UploadCss

[java] Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator

[java] Initializing ResourceGenerator

[java] [ERROR] Unable to determine default for GSS in UiBinder

[java] [ERROR] An internal compiler exception occurred

[java] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

[java] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)

[java] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)

[java] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)

[java] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)

[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)

[java] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)

[java] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)

[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)

[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)

[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)

[java] at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)

[java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)

[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)

[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

[java] at com.google.gwt.dev.Compiler.run(Compiler.java:206)

[java] at com.google.gwt.dev.Compiler.run(Compiler.java:158)

[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)

[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)

[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)

[java] at com.google.gwt.dev.Compiler.main(Compiler.java:127)

[java] Caused by: java.lang.NoSuchMethodError: com.google.gwt.util.tools.Utility.close(Ljava/lang/AutoCloseable;)V

[java] at com.google.gwt.resources.rg.ImageResourceGenerator.getContentLength(ImageResourceGenerator.java:623)

[java] at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:584)

[java] at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1013)

[java] at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1039)

[java] at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:419)

[java] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:754)

[java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:160)

[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

[java] at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:87)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:485)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:443)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:576)

[java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:306)

[java] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:248)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)

[java] ... 40 more

[java] [ERROR] at UploadCss.java(9): GWT.create(UploadCss.class)

[java] com.google.gwt.dev.jjs.ast.JMethodCall

[java] [ERROR] at UploadCss.java(9): (UploadCss) GWT.create(UploadCss.class)

[java] com.google.gwt.dev.jjs.ast.JCastOperation

[java] [ERROR] at UploadCss.java(9): final static UploadCss INSTANCE = (UploadCss) GWT.create(UploadCss.class)

[java] com.google.gwt.dev.jjs.ast.JDeclarationStatement

[java] [ERROR] at UploadCss.java(8): {

[java] final static UploadCss INSTANCE = (UploadCss) GWT.create(UploadCss.class);

[java] }

[java] com.google.gwt.dev.jjs.ast.JBlock

[java] [ERROR] at UploadCss.java(8): {

[java] final static UploadCss INSTANCE = (UploadCss) GWT.create(UploadCss.class);

[java] }

[java] com.google.gwt.dev.jjs.ast.JMethodBody

[java] [ERROR] at UploadCss.java(8): private static final void $clinit();

[java] com.google.gwt.dev.jjs.ast.JMethod

BUILD FAILED

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.