How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread Hari
Hi Team,

(Apologies if the answers to my question are based on individuals opinion 
based, but i am in dire need of your help)

I am currently stuck with an old GWT 2.1.0 application written in Java 1.6 
which needs to be updated to java 1.8, so we are planning to upgrade to 
latest GWT version 2.9.0. There are no changes to the application code or 
any new enhancement request in last 5 years, considering this our client is 
expecting no changes to look and feel of the application but from the 
compliance perspective we are required to upgrade to at least Java 1.8.

But i have no experience and never used GWT, and there are very few guides 
out there on upgrade from 2.1.0 to 2.9.0 (I know its a big jump). Can 
someone help me understand, how to start the upgrade process, and how much 
code changes would i need to make the application compatible with the new 
version, will it be complete re-wright of the UI component of the 
application? or will it be minor changes to existing code ? Finally, if the 
upgrade requires complete re writing of UI component, is it worth it for me 
to lean GWT (considering recent slow down in upgrades to GWT) and uses it 
in the upgrade instead of complete rewrite of UI in React. 

Thanks in advance. 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/0d9b778b-0bde-43fa-8cab-47f01ad85223o%40googlegroups.com.


Re: Pbs with Debug GWT application with Eclipse

2020-08-25 Thread Thomas Broyer


On Monday, August 24, 2020 at 7:50:40 PM UTC+2, Guillen Antonio wrote:
>
> Hi all
> I use the last 2020-06 version of eclipse, with the modelling tools (EMF), 
> I use the Eclipse plugin define in the picture below.The application work 
> fine, but just for the fun if I want try to debug it:
>
>1. I select break points, in the moduleLoad method.
>2. I launch using Debug AS  Devlopment mode with Jetty
>
> The appli run like is I lauch it wit(h Run As  Devlopment mode with Jetty.
>
> I don't understand where I do a mistake.
>

"Debug as…" will allow you to set breakpoints in your server code.

For client code, see 
https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/debugging/Debugging.html
 and 
https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/debugging/JavascriptDebugger.html

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/bf6e0e62-3ee1-406a-9dac-17bb620ea422o%40googlegroups.com.


Re: How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread Ralph Fiergolla
While I never skipped so many versions with my own GWT applications, I 
would assume this upgrade to be mostly transparent and go without many code 
changes. Just replace the SDKs and check what your build process complains 
about (if it complains at all). 

On Tuesday, August 25, 2020 at 1:01:47 PM UTC+2 Hari wrote:

> Hi Team,
>
> (Apologies if the answers to my question are based on individuals opinion 
> based, but i am in dire need of your help)
>
> I am currently stuck with an old GWT 2.1.0 application written in Java 1.6 
> which needs to be updated to java 1.8, so we are planning to upgrade to 
> latest GWT version 2.9.0. There are no changes to the application code or 
> any new enhancement request in last 5 years, considering this our client is 
> expecting no changes to look and feel of the application but from the 
> compliance perspective we are required to upgrade to at least Java 1.8.
>
> But i have no experience and never used GWT, and there are very few guides 
> out there on upgrade from 2.1.0 to 2.9.0 (I know its a big jump). Can 
> someone help me understand, how to start the upgrade process, and how much 
> code changes would i need to make the application compatible with the new 
> version, will it be complete re-wright of the UI component of the 
> application? or will it be minor changes to existing code ? Finally, if the 
> upgrade requires complete re writing of UI component, is it worth it for me 
> to lean GWT (considering recent slow down in upgrades to GWT) and uses it 
> in the upgrade instead of complete rewrite of UI in React. 
>
> Thanks in advance. 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/53b65fe0-45c2-404f-8116-5946af5ba6can%40googlegroups.com.


Re: How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread Thomas Broyer


On Tuesday, August 25, 2020 at 5:49:38 PM UTC+2, Hari wrote:
>
> Thank you all for the quick response, from all the responses its general 
> that it will not be complete re-write, which is a relief for sure. 
>
> Also I forgot to mention we were using GXT 2.2.1 and as per this doc 
> https://docs.sencha.com/gxt/4.x/guides/getting_started/Versions.html 
> 
>  in 
> order to use GWT 2.9 i will have to use GXT4.x, so i made the SDK changes 
> and tried to build the application, with minimal changes to *.GWT.xml file, 
> i am running into below build error.
>

Updating GXT is another matter, AFAICT this is *not* easy, as they made a 
*lot* of breaking changes. Also, it's likely that the app will change 
visually. Oh, and licensing.
(I've never used GXT, so can't really help)

But if your goal is only/primarily to update to Java 8, have you tried 
whether it's possible without bumping GWT at all? or possibly not all the 
way to 2.8/2.9? (e.g. 2.6, which is still compatible with GXT 2, as of 
2.3.1a)
 

>
> [java][ERROR] Hint: Check that your module inherits 
> 'com.google.gwt.core.Core' either directly or indirectly (most often by 
> inheriting module 'com.google.gwt.user.User')
>
> Googling around on this error for some time now, but no luck. can anyone 
> here please help me with this.
> Also are there any other things that need to be taken care of when 
> upgrading to gxt to 4.x? 
>
> Thanks
> Hari
>
> On Tuesday, August 25, 2020 at 7:44:36 PM UTC+5:30 t.br...@gmail.com 
> wrote:
>
>>
>>
>> On Tuesday, August 25, 2020 at 1:01:47 PM UTC+2, Hari wrote:
>>>
>>> Hi Team,
>>>
>>> (Apologies if the answers to my question are based on individuals 
>>> opinion based, but i am in dire need of your help)
>>>
>>> I am currently stuck with an old GWT 2.1.0 application written in Java 
>>> 1.6 which needs to be updated to java 1.8, so we are planning to upgrade to 
>>> latest GWT version 2.9.0. There are no changes to the application code or 
>>> any new enhancement request in last 5 years, considering this our client is 
>>> expecting no changes to look and feel of the application but from the 
>>> compliance perspective we are required to upgrade to at least Java 1.8.
>>>
>>> But i have no experience and never used GWT, and there are very few 
>>> guides out there on upgrade from 2.1.0 to 2.9.0 (I know its a big jump). 
>>> Can someone help me understand, how to start the upgrade process, and how 
>>> much code changes would i need to make the application compatible with the 
>>> new version, will it be complete re-wright of the UI component of the 
>>> application? or will it be minor changes to existing code ? Finally, if the 
>>> upgrade requires complete re writing of UI component, is it worth it for me 
>>> to lean GWT (considering recent slow down in upgrades to GWT) and uses it 
>>> in the upgrade instead of complete rewrite of UI in React.
>>>
>>
>> It depends on your dependencies.
>> GWT 2.2 had a breaking change for some third-party libraries (using GWT 
>> generators, by turning some abstract classes into interfaces), so make sure 
>> you also update your third-party libraries.
>> Otherwise, things should work without too much breakage AFAICT, and 
>> should *also* look the same (again, depending on the additional 
>> libraries the project uses).
>> See http://www.gwtproject.org/release-notes.html (and yes, the breaking 
>> change in 2.2 is not documented there ¯\_(ツ)_/¯ )
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/02d5b2bc-b700-4ca2-b712-74a6f29a16aeo%40googlegroups.com.


Re: How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread Hari
Thank you all for the quick response, from all the responses its general 
that it will not be complete re-write, which is a relief for sure. 

Also I forgot to mention we were using GXT 2.2.1 and as per this doc 
https://docs.sencha.com/gxt/4.x/guides/getting_started/Versions.html in 
order to use GWT 2.9 i will have to use GXT4.x, so i made the SDK changes 
and tried to build the application, with minimal changes to *.GWT.xml file, 
i am running into below build error.

[java][ERROR] Hint: Check that your module inherits 
'com.google.gwt.core.Core' either directly or indirectly (most often by 
inheriting module 'com.google.gwt.user.User')

Googling around on this error for some time now, but no luck. can anyone 
here please help me with this.
Also are there any other things that need to be taken care of when 
upgrading to gxt to 4.x? 

Thanks
Hari

On Tuesday, August 25, 2020 at 7:44:36 PM UTC+5:30 t.br...@gmail.com wrote:

>
>
> On Tuesday, August 25, 2020 at 1:01:47 PM UTC+2, Hari wrote:
>>
>> Hi Team,
>>
>> (Apologies if the answers to my question are based on individuals opinion 
>> based, but i am in dire need of your help)
>>
>> I am currently stuck with an old GWT 2.1.0 application written in Java 
>> 1.6 which needs to be updated to java 1.8, so we are planning to upgrade to 
>> latest GWT version 2.9.0. There are no changes to the application code or 
>> any new enhancement request in last 5 years, considering this our client is 
>> expecting no changes to look and feel of the application but from the 
>> compliance perspective we are required to upgrade to at least Java 1.8.
>>
>> But i have no experience and never used GWT, and there are very few 
>> guides out there on upgrade from 2.1.0 to 2.9.0 (I know its a big jump). 
>> Can someone help me understand, how to start the upgrade process, and how 
>> much code changes would i need to make the application compatible with the 
>> new version, will it be complete re-wright of the UI component of the 
>> application? or will it be minor changes to existing code ? Finally, if the 
>> upgrade requires complete re writing of UI component, is it worth it for me 
>> to lean GWT (considering recent slow down in upgrades to GWT) and uses it 
>> in the upgrade instead of complete rewrite of UI in React.
>>
>
> It depends on your dependencies.
> GWT 2.2 had a breaking change for some third-party libraries (using GWT 
> generators, by turning some abstract classes into interfaces), so make sure 
> you also update your third-party libraries.
> Otherwise, things should work without too much breakage AFAICT, and should 
> *also* look the same (again, depending on the additional libraries the 
> project uses).
> See http://www.gwtproject.org/release-notes.html (and yes, the breaking 
> change in 2.2 is not documented there ¯\_(ツ)_/¯ )
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/18ec02e1-9f2c-49d1-aecf-1bc2d5878af2n%40googlegroups.com.


Re: How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread Thomas Broyer


On Tuesday, August 25, 2020 at 1:01:47 PM UTC+2, Hari wrote:
>
> Hi Team,
>
> (Apologies if the answers to my question are based on individuals opinion 
> based, but i am in dire need of your help)
>
> I am currently stuck with an old GWT 2.1.0 application written in Java 1.6 
> which needs to be updated to java 1.8, so we are planning to upgrade to 
> latest GWT version 2.9.0. There are no changes to the application code or 
> any new enhancement request in last 5 years, considering this our client is 
> expecting no changes to look and feel of the application but from the 
> compliance perspective we are required to upgrade to at least Java 1.8.
>
> But i have no experience and never used GWT, and there are very few guides 
> out there on upgrade from 2.1.0 to 2.9.0 (I know its a big jump). Can 
> someone help me understand, how to start the upgrade process, and how much 
> code changes would i need to make the application compatible with the new 
> version, will it be complete re-wright of the UI component of the 
> application? or will it be minor changes to existing code ? Finally, if the 
> upgrade requires complete re writing of UI component, is it worth it for me 
> to lean GWT (considering recent slow down in upgrades to GWT) and uses it 
> in the upgrade instead of complete rewrite of UI in React.
>

It depends on your dependencies.
GWT 2.2 had a breaking change for some third-party libraries (using GWT 
generators, by turning some abstract classes into interfaces), so make sure 
you also update your third-party libraries.
Otherwise, things should work without too much breakage AFAICT, and should 
*also* look the same (again, depending on the additional libraries the 
project uses).
See http://www.gwtproject.org/release-notes.html (and yes, the breaking 
change in 2.2 is not documented there ¯\_(ツ)_/¯ )

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/6ea473ca-ac64-4e31-a47e-d97e9bd383e0o%40googlegroups.com.


Re: Pbs with Debug GWT application with Eclipse

2020-08-25 Thread Guillen Antonio


Thanks a lot for your Help
Antonio
Le mardi 25 août 2020 à 12:06:31 UTC+2, t.br...@gmail.com a écrit :

>
>
> On Monday, August 24, 2020 at 7:50:40 PM UTC+2, Guillen Antonio wrote:
>>
>> Hi all
>> I use the last 2020-06 version of eclipse, with the modelling tools 
>> (EMF), I use the Eclipse plugin define in the picture below.The application 
>> work fine, but just for the fun if I want try to debug it:
>>
>>1. I select break points, in the moduleLoad method.
>>2. I launch using Debug AS  Devlopment mode with Jetty
>>
>> The appli run like is I lauch it wit(h Run As  Devlopment mode with Jetty.
>>
>> I don't understand where I do a mistake.
>>
>
> "Debug as…" will allow you to set breakpoints in your server code.
>
> For client code, see 
> https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/debugging/Debugging.html
>  and 
> https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/debugging/JavascriptDebugger.html
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/90455de0-49d0-431c-b29f-1f53cfcbb170n%40googlegroups.com.


Re: How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread vie...@gmail.com
Hi Hari, 

I think, it depends on the used Frameworks. The biggest change will be the 
switch to the Super Dev Mode. 
In your case, I would jump to 2.8.2 and later on to 2.9.0 because 2.9.0 is 
very new and maybe there are some bugs you run into. The most 2.8.2 
problems are discussed somewhere ;)

You will have to change the gwt.xml file a bit, but overall the code should 
be untouched. There are only some special things where 2.8.2 is different. 
Especially if you have methods with one parameter, but different possible 
input types. Sometime 2.8.2 selects the wrong one you needs a little push 
to find the correct method. But you can see this very fast because of some 
ClassCastExceptions ;)

The question, if it would be cheaper to write everything cannot be 
answered. But if not every single feature is well documented, you will lose 
some on the rewrite. So in general rewrite everything should be the last 
option to choose.

Best Regards
Norbert

Hari schrieb am Dienstag, 25. August 2020 um 13:01:47 UTC+2:

> Hi Team,
>
> (Apologies if the answers to my question are based on individuals opinion 
> based, but i am in dire need of your help)
>
> I am currently stuck with an old GWT 2.1.0 application written in Java 1.6 
> which needs to be updated to java 1.8, so we are planning to upgrade to 
> latest GWT version 2.9.0. There are no changes to the application code or 
> any new enhancement request in last 5 years, considering this our client is 
> expecting no changes to look and feel of the application but from the 
> compliance perspective we are required to upgrade to at least Java 1.8.
>
> But i have no experience and never used GWT, and there are very few guides 
> out there on upgrade from 2.1.0 to 2.9.0 (I know its a big jump). Can 
> someone help me understand, how to start the upgrade process, and how much 
> code changes would i need to make the application compatible with the new 
> version, will it be complete re-wright of the UI component of the 
> application? or will it be minor changes to existing code ? Finally, if the 
> upgrade requires complete re writing of UI component, is it worth it for me 
> to lean GWT (considering recent slow down in upgrades to GWT) and uses it 
> in the upgrade instead of complete rewrite of UI in React. 
>
> Thanks in advance. 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/29c94932-f877-4ad1-9044-a26e485fb3adn%40googlegroups.com.


EMF with GWT and serialize problems

2020-08-25 Thread Guillen Antonio
HI all,

I use GWT 2.81 and EMF (Eclipse Modeling Framework) when i want send from 
the server to the client an object of my model, I obtain this final error:
com.google.gwt.user.client.rpc.SerializationException: Type 
'com.lacen.organisation.impl.RequirementImpl' was not included in the set 
of types which can be serialized by this SerializationPolicy or its Class 
object could not be loaded. For security purposes, this type will not be 
serialized.: instance = 
com.lacen.organisation.impl.RequirementImpl@2fa144e7 (name: Fkygrdphgf)

I have tried to understand how to use serializationWhitelist but I have no 
clear example.  The class RequirementImpl contains List, so I tried to 
create ArrayList with the good type, but same pb.

Can you help me, at least give me where found a claer explanation. 

Tanks a lot 
Antonio Guillen

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/24959a33-d977-478d-8e6d-a473802ed616n%40googlegroups.com.