Re: The GWT application hangs on the loading screen

2024-01-19 Thread Antonio Capone
Hi Jeff, all,
your advice was very helpful to me, thanks a lot.

I put an alert message at the first line of your onModuleLoad method.
I put 3 more alert message in the entrypoint classes defined within the 3 
gwt.xml files. I did this work first locally, where the project goes up 
without problems and then I deployed the war on the cloud.
Locally the 3 warning messages inform me that the 3 entrypoint classes are 
called. But this does not happen in the distributed application. Only the 
MyWorkspace class containing the  onModuleLoad()  method is called and then 
it enters a sort of loop, always loading the same class and never the 3 
entrypoint classes.
Please, do you know why this happens?
This is all happening following an upgrade from GWT 1.5 to GWT 2.7.0, with 
jdk 1.8.

Thanks in advance,
Antonio


Il giorno mercoledì 17 gennaio 2024 alle 18:28:04 UTC+1 Jeff Hill ha 
scritto:

> There might be an error in the actual code of the app (exception or other).
>
> I suggest you try some primitive debugging with a Window.alert message as 
> the first line of your onModuleLoad method.
>
> ie...
>  @Override
> public void onModuleLoad() {
>
> Window.alert("App is starting");
>
> On Wednesday, January 17, 2024 at 10:16:54 AM UTC-7 Antonio Capone wrote:
>
>>  Hi Frank, thanks for the support.
>> No errors appear in the application logs of the application nor in the 
>> Develop Tool. The nocache.js file is successfully loaded. What else could 
>> it be?
>>
>> Regrds
>>
>> Il giorno lunedì 15 gennaio 2024 alle 15:15:56 UTC+1 Frank Hossfeld ha 
>> scritto:
>>
>>> Did you check in the Developer Tools ->. Network if the nochache.js gets 
>>> loaded?
>>>
>>> Antonio Capone schrieb am Montag, 15. Januar 2024 um 09:53:58 UTC+1:
>>>
 Hello everyone and thanks for the advice you are giving me.
 The nocache.js file is regularly generated and loaded. I don't think I 
 have a problem with the URI because I can also see the home page grid but 
 nothing more. No errors appear in the developer tool. Note that I upgraded 
 from GWT 2.1 to GWT 2.7 and before that I had no problems.
 Can you give me some other suggestions?
 Thanks again.

 Il giorno domenica 14 gennaio 2024 alle 05:39:07 UTC+1 Craig Mitchell 
 ha scritto:

> I use a servlet filter to tell the browser not to cache the nocache 
> files:
>
> public class ServletFilter implements Filter {
>   private static final String NO_CACHE = ".nocache.js";
>
>   @Override
>   public void doFilter(ServletRequest request, ServletResponse 
> response, FilterChain chain) throws IOException, ServletException {
> String requestURI = ((HttpServletRequest)request).getRequestURI();
>
> // Don't cache the nocache
> if (requestURI.endsWith(NO_CACHE)) {
>   setNoCache((HttpServletResponse)response);
> }
> chain.doFilter(request, response);
>   }
>
>   private void setNoCache(HttpServletResponse httpResponse) {
> Date now = new Date();
> httpResponse.setDateHeader("Date", now.getTime());
> httpResponse.setDateHeader("Expires", now.getTime() - 8640L);
> httpResponse.setHeader("Pragma", "no-cache");
> httpResponse.setHeader("cache-control", "public, max-age=0, 
> must-revalidate");
>   }
> }
>
> On Saturday 13 January 2024 at 2:54:08 am UTC+11 Jeff Hill wrote:
>
>> There may have been some Chrome updates in the last few months; 
>> occasionally, I must hard refresh to get the latest code from 
>> nocache.js.  
>> (That did not happen in  years past)
>>
>> Anyway, I always check in Developer Tools in Chrome to make sure 
>> there are no errors in the "Console" and all the necessary files are 
>> being 
>> loaded in the "Network" tab.
>> On Thursday, January 11, 2024 at 6:42:14 AM UTC-7 Frank Hossfeld 
>> wrote:
>>
>>> Check if the nochache.js gets loaded at a applicaiton staert or if 
>>> it got a 404. In this case something with the URI is not ok.
>>>
>>> Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 
>>> UTC+1:
>>>
 Hi all. I deployed an app using GWT on Cloud. It's deployed and 
 working, but when you log in, the browser window just says "Loading" 
 and 
 seems to hang indefinitely. Works fine locally in Eclipse.
 Has this ever happened to you? Is there anyone who can help me 
 understand why this happens?
 Many thanks

>>>

-- 
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/7b891aee-6b0c-4f14-95c7-fac57021f40fn%40googlegroups.com.


Re: The GWT application hangs on the loading screen

2024-01-17 Thread Jeff Hill
There might be an error in the actual code of the app (exception or other).

I suggest you try some primitive debugging with a Window.alert message as 
the first line of your onModuleLoad method.

ie...
 @Override
public void onModuleLoad() {

Window.alert("App is starting");

On Wednesday, January 17, 2024 at 10:16:54 AM UTC-7 Antonio Capone wrote:

>  Hi Frank, thanks for the support.
> No errors appear in the application logs of the application nor in the 
> Develop Tool. The nocache.js file is successfully loaded. What else could 
> it be?
>
> Regrds
>
> Il giorno lunedì 15 gennaio 2024 alle 15:15:56 UTC+1 Frank Hossfeld ha 
> scritto:
>
>> Did you check in the Developer Tools ->. Network if the nochache.js gets 
>> loaded?
>>
>> Antonio Capone schrieb am Montag, 15. Januar 2024 um 09:53:58 UTC+1:
>>
>>> Hello everyone and thanks for the advice you are giving me.
>>> The nocache.js file is regularly generated and loaded. I don't think I 
>>> have a problem with the URI because I can also see the home page grid but 
>>> nothing more. No errors appear in the developer tool. Note that I upgraded 
>>> from GWT 2.1 to GWT 2.7 and before that I had no problems.
>>> Can you give me some other suggestions?
>>> Thanks again.
>>>
>>> Il giorno domenica 14 gennaio 2024 alle 05:39:07 UTC+1 Craig Mitchell ha 
>>> scritto:
>>>
 I use a servlet filter to tell the browser not to cache the nocache 
 files:

 public class ServletFilter implements Filter {
   private static final String NO_CACHE = ".nocache.js";

   @Override
   public void doFilter(ServletRequest request, ServletResponse response, 
 FilterChain chain) throws IOException, ServletException {
 String requestURI = ((HttpServletRequest)request).getRequestURI();

 // Don't cache the nocache
 if (requestURI.endsWith(NO_CACHE)) {
   setNoCache((HttpServletResponse)response);
 }
 chain.doFilter(request, response);
   }

   private void setNoCache(HttpServletResponse httpResponse) {
 Date now = new Date();
 httpResponse.setDateHeader("Date", now.getTime());
 httpResponse.setDateHeader("Expires", now.getTime() - 8640L);
 httpResponse.setHeader("Pragma", "no-cache");
 httpResponse.setHeader("cache-control", "public, max-age=0, 
 must-revalidate");
   }
 }

 On Saturday 13 January 2024 at 2:54:08 am UTC+11 Jeff Hill wrote:

> There may have been some Chrome updates in the last few months; 
> occasionally, I must hard refresh to get the latest code from nocache.js. 
>  
> (That did not happen in  years past)
>
> Anyway, I always check in Developer Tools in Chrome to make sure there 
> are no errors in the "Console" and all the necessary files are being 
> loaded 
> in the "Network" tab.
> On Thursday, January 11, 2024 at 6:42:14 AM UTC-7 Frank Hossfeld wrote:
>
>> Check if the nochache.js gets loaded at a applicaiton staert or if it 
>> got a 404. In this case something with the URI is not ok.
>>
>> Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 
>> UTC+1:
>>
>>> Hi all. I deployed an app using GWT on Cloud. It's deployed and 
>>> working, but when you log in, the browser window just says "Loading" 
>>> and 
>>> seems to hang indefinitely. Works fine locally in Eclipse.
>>> Has this ever happened to you? Is there anyone who can help me 
>>> understand why this happens?
>>> Many thanks
>>>
>>

-- 
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/375583b8-8baa-49f4-b267-e2fb44568e3fn%40googlegroups.com.


Re: The GWT application hangs on the loading screen

2024-01-17 Thread Antonio Capone
 Hi Frank, thanks for the support.
No errors appear in the application logs of the application nor in the 
Develop Tool. The nocache.js file is successfully loaded. What else could 
it be?

Regrds

Il giorno lunedì 15 gennaio 2024 alle 15:15:56 UTC+1 Frank Hossfeld ha 
scritto:

> Did you check in the Developer Tools ->. Network if the nochache.js gets 
> loaded?
>
> Antonio Capone schrieb am Montag, 15. Januar 2024 um 09:53:58 UTC+1:
>
>> Hello everyone and thanks for the advice you are giving me.
>> The nocache.js file is regularly generated and loaded. I don't think I 
>> have a problem with the URI because I can also see the home page grid but 
>> nothing more. No errors appear in the developer tool. Note that I upgraded 
>> from GWT 2.1 to GWT 2.7 and before that I had no problems.
>> Can you give me some other suggestions?
>> Thanks again.
>>
>> Il giorno domenica 14 gennaio 2024 alle 05:39:07 UTC+1 Craig Mitchell ha 
>> scritto:
>>
>>> I use a servlet filter to tell the browser not to cache the nocache 
>>> files:
>>>
>>> public class ServletFilter implements Filter {
>>>   private static final String NO_CACHE = ".nocache.js";
>>>
>>>   @Override
>>>   public void doFilter(ServletRequest request, ServletResponse response, 
>>> FilterChain chain) throws IOException, ServletException {
>>> String requestURI = ((HttpServletRequest)request).getRequestURI();
>>>
>>> // Don't cache the nocache
>>> if (requestURI.endsWith(NO_CACHE)) {
>>>   setNoCache((HttpServletResponse)response);
>>> }
>>> chain.doFilter(request, response);
>>>   }
>>>
>>>   private void setNoCache(HttpServletResponse httpResponse) {
>>> Date now = new Date();
>>> httpResponse.setDateHeader("Date", now.getTime());
>>> httpResponse.setDateHeader("Expires", now.getTime() - 8640L);
>>> httpResponse.setHeader("Pragma", "no-cache");
>>> httpResponse.setHeader("cache-control", "public, max-age=0, 
>>> must-revalidate");
>>>   }
>>> }
>>>
>>> On Saturday 13 January 2024 at 2:54:08 am UTC+11 Jeff Hill wrote:
>>>
 There may have been some Chrome updates in the last few months; 
 occasionally, I must hard refresh to get the latest code from nocache.js.  
 (That did not happen in  years past)

 Anyway, I always check in Developer Tools in Chrome to make sure there 
 are no errors in the "Console" and all the necessary files are being 
 loaded 
 in the "Network" tab.
 On Thursday, January 11, 2024 at 6:42:14 AM UTC-7 Frank Hossfeld wrote:

> Check if the nochache.js gets loaded at a applicaiton staert or if it 
> got a 404. In this case something with the URI is not ok.
>
> Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 
> UTC+1:
>
>> Hi all. I deployed an app using GWT on Cloud. It's deployed and 
>> working, but when you log in, the browser window just says "Loading" and 
>> seems to hang indefinitely. Works fine locally in Eclipse.
>> Has this ever happened to you? Is there anyone who can help me 
>> understand why this happens?
>> Many thanks
>>
>

-- 
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/07469cc5-7682-4369-a748-c14e6d8d8aban%40googlegroups.com.


Re: The GWT application hangs on the loading screen

2024-01-15 Thread 'Frank Hossfeld' via GWT Users
Did you check in the Developer Tools ->. Network if the nochache.js gets 
loaded?

Antonio Capone schrieb am Montag, 15. Januar 2024 um 09:53:58 UTC+1:

> Hello everyone and thanks for the advice you are giving me.
> The nocache.js file is regularly generated and loaded. I don't think I 
> have a problem with the URI because I can also see the home page grid but 
> nothing more. No errors appear in the developer tool. Note that I upgraded 
> from GWT 2.1 to GWT 2.7 and before that I had no problems.
> Can you give me some other suggestions?
> Thanks again.
>
> Il giorno domenica 14 gennaio 2024 alle 05:39:07 UTC+1 Craig Mitchell ha 
> scritto:
>
>> I use a servlet filter to tell the browser not to cache the nocache files:
>>
>> public class ServletFilter implements Filter {
>>   private static final String NO_CACHE = ".nocache.js";
>>
>>   @Override
>>   public void doFilter(ServletRequest request, ServletResponse response, 
>> FilterChain 
>> chain) throws IOException, ServletException {
>> String requestURI = ((HttpServletRequest)request).getRequestURI();
>>
>> // Don't cache the nocache
>> if (requestURI.endsWith(NO_CACHE)) {
>>   setNoCache((HttpServletResponse)response);
>> }
>> chain.doFilter(request, response);
>>   }
>>
>>   private void setNoCache(HttpServletResponse httpResponse) {
>> Date now = new Date();
>> httpResponse.setDateHeader("Date", now.getTime());
>> httpResponse.setDateHeader("Expires", now.getTime() - 8640L);
>> httpResponse.setHeader("Pragma", "no-cache");
>> httpResponse.setHeader("cache-control", "public, max-age=0, 
>> must-revalidate");
>>   }
>> }
>>
>> On Saturday 13 January 2024 at 2:54:08 am UTC+11 Jeff Hill wrote:
>>
>>> There may have been some Chrome updates in the last few months; 
>>> occasionally, I must hard refresh to get the latest code from nocache.js.  
>>> (That did not happen in  years past)
>>>
>>> Anyway, I always check in Developer Tools in Chrome to make sure there 
>>> are no errors in the "Console" and all the necessary files are being loaded 
>>> in the "Network" tab.
>>> On Thursday, January 11, 2024 at 6:42:14 AM UTC-7 Frank Hossfeld wrote:
>>>
 Check if the nochache.js gets loaded at a applicaiton staert or if it 
 got a 404. In this case something with the URI is not ok.

 Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 UTC+1:

> Hi all. I deployed an app using GWT on Cloud. It's deployed and 
> working, but when you log in, the browser window just says "Loading" and 
> seems to hang indefinitely. Works fine locally in Eclipse.
> Has this ever happened to you? Is there anyone who can help me 
> understand why this happens?
> Many thanks
>


-- 
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/21799f50-40b7-4360-9865-ff1796d48a75n%40googlegroups.com.


Re: The GWT application hangs on the loading screen

2024-01-15 Thread Antonio Capone
Hello everyone and thanks for the advice you are giving me.
The nocache.js file is regularly generated and loaded. I don't think I have 
a problem with the URI because I can also see the home page grid but 
nothing more. No errors appear in the developer tool. Note that I upgraded 
from GWT 2.1 to GWT 2.7 and before that I had no problems.
Can you give me some other suggestions?
Thanks again.

Il giorno domenica 14 gennaio 2024 alle 05:39:07 UTC+1 Craig Mitchell ha 
scritto:

> I use a servlet filter to tell the browser not to cache the nocache files:
>
> public class ServletFilter implements Filter {
>   private static final String NO_CACHE = ".nocache.js";
>
>   @Override
>   public void doFilter(ServletRequest request, ServletResponse response, 
> FilterChain 
> chain) throws IOException, ServletException {
> String requestURI = ((HttpServletRequest)request).getRequestURI();
>
> // Don't cache the nocache
> if (requestURI.endsWith(NO_CACHE)) {
>   setNoCache((HttpServletResponse)response);
> }
> chain.doFilter(request, response);
>   }
>
>   private void setNoCache(HttpServletResponse httpResponse) {
> Date now = new Date();
> httpResponse.setDateHeader("Date", now.getTime());
> httpResponse.setDateHeader("Expires", now.getTime() - 8640L);
> httpResponse.setHeader("Pragma", "no-cache");
> httpResponse.setHeader("cache-control", "public, max-age=0, 
> must-revalidate");
>   }
> }
>
> On Saturday 13 January 2024 at 2:54:08 am UTC+11 Jeff Hill wrote:
>
>> There may have been some Chrome updates in the last few months; 
>> occasionally, I must hard refresh to get the latest code from nocache.js.  
>> (That did not happen in  years past)
>>
>> Anyway, I always check in Developer Tools in Chrome to make sure there 
>> are no errors in the "Console" and all the necessary files are being loaded 
>> in the "Network" tab.
>> On Thursday, January 11, 2024 at 6:42:14 AM UTC-7 Frank Hossfeld wrote:
>>
>>> Check if the nochache.js gets loaded at a applicaiton staert or if it 
>>> got a 404. In this case something with the URI is not ok.
>>>
>>> Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 UTC+1:
>>>
 Hi all. I deployed an app using GWT on Cloud. It's deployed and 
 working, but when you log in, the browser window just says "Loading" and 
 seems to hang indefinitely. Works fine locally in Eclipse.
 Has this ever happened to you? Is there anyone who can help me 
 understand why this happens?
 Many thanks

>>>

-- 
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/fb4d716e-c5d1-480f-ad2d-778c80771d9en%40googlegroups.com.


Re: The GWT application hangs on the loading screen

2024-01-13 Thread Craig Mitchell
I use a servlet filter to tell the browser not to cache the nocache files:

public class ServletFilter implements Filter {
  private static final String NO_CACHE = ".nocache.js";

  @Override
  public void doFilter(ServletRequest request, ServletResponse response, 
FilterChain 
chain) throws IOException, ServletException {
String requestURI = ((HttpServletRequest)request).getRequestURI();

// Don't cache the nocache
if (requestURI.endsWith(NO_CACHE)) {
  setNoCache((HttpServletResponse)response);
}
chain.doFilter(request, response);
  }

  private void setNoCache(HttpServletResponse httpResponse) {
Date now = new Date();
httpResponse.setDateHeader("Date", now.getTime());
httpResponse.setDateHeader("Expires", now.getTime() - 8640L);
httpResponse.setHeader("Pragma", "no-cache");
httpResponse.setHeader("cache-control", "public, max-age=0, 
must-revalidate");
  }
}

On Saturday 13 January 2024 at 2:54:08 am UTC+11 Jeff Hill wrote:

> There may have been some Chrome updates in the last few months; 
> occasionally, I must hard refresh to get the latest code from nocache.js.  
> (That did not happen in  years past)
>
> Anyway, I always check in Developer Tools in Chrome to make sure there are 
> no errors in the "Console" and all the necessary files are being loaded in 
> the "Network" tab.
> On Thursday, January 11, 2024 at 6:42:14 AM UTC-7 Frank Hossfeld wrote:
>
>> Check if the nochache.js gets loaded at a applicaiton staert or if it got 
>> a 404. In this case something with the URI is not ok.
>>
>> Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 UTC+1:
>>
>>> Hi all. I deployed an app using GWT on Cloud. It's deployed and working, 
>>> but when you log in, the browser window just says "Loading" and seems to 
>>> hang indefinitely. Works fine locally in Eclipse.
>>> Has this ever happened to you? Is there anyone who can help me 
>>> understand why this happens?
>>> Many thanks
>>>
>>

-- 
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/76e39f7a-8df0-4a7d-9d81-e14467b3764an%40googlegroups.com.


Re: The GWT application hangs on the loading screen

2024-01-12 Thread Jeff Hill
There may have been some Chrome updates in the last few months; 
occasionally, I must hard refresh to get the latest code from nocache.js.  
(That did not happen in  years past)

Anyway, I always check in Developer Tools in Chrome to make sure there are 
no errors in the "Console" and all the necessary files are being loaded in 
the "Network" tab.
On Thursday, January 11, 2024 at 6:42:14 AM UTC-7 Frank Hossfeld wrote:

> Check if the nochache.js gets loaded at a applicaiton staert or if it got 
> a 404. In this case something with the URI is not ok.
>
> Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 UTC+1:
>
>> Hi all. I deployed an app using GWT on Cloud. It's deployed and working, 
>> but when you log in, the browser window just says "Loading" and seems to 
>> hang indefinitely. Works fine locally in Eclipse.
>> Has this ever happened to you? Is there anyone who can help me understand 
>> why this happens?
>> Many thanks
>>
>

-- 
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/01273156-a2c3-4324-a38b-bce5410fa461n%40googlegroups.com.


Re: The GWT application hangs on the loading screen

2024-01-11 Thread 'Frank Hossfeld' via GWT Users
Check if the nochache.js gets loaded at a applicaiton staert or if it got a 
404. In this case something with the URI is not ok.

Antonio Capone schrieb am Donnerstag, 11. Januar 2024 um 10:56:55 UTC+1:

> Hi all. I deployed an app using GWT on Cloud. It's deployed and working, 
> but when you log in, the browser window just says "Loading" and seems to 
> hang indefinitely. Works fine locally in Eclipse.
> Has this ever happened to you? Is there anyone who can help me understand 
> why this happens?
> Many thanks
>

-- 
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/561f301d-8bd9-4a99-8b10-93c2cf2cc3d3n%40googlegroups.com.


The GWT application hangs on the loading screen

2024-01-11 Thread Antonio Capone
Hi all. I deployed an app using GWT on Cloud. It's deployed and working, 
but when you log in, the browser window just says "Loading" and seems to 
hang indefinitely. Works fine locally in Eclipse.
Has this ever happened to you? Is there anyone who can help me understand 
why this happens?
Many thanks

-- 
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/669136be-ee5f-48ea-82ac-c18436a75bb4n%40googlegroups.com.