View Full Version : Application hangs at loading screen in FF3
posta07
20 Oct 2008, 12:35 PM
Has anyone else experienced this?
I realize my description that follows may be vague, but I'm hoping others have experienced this...
Upon loading my application, FF3 just hangs at the "Loading..." screen. I see that the entire GWT javascript gets loaded (using firebug I can verify this), but the loading panel doesn't go away and the app's main screen doesn't appear. The problem is, it's completely random. For the first half of the day, it will work fine. Then it starts to screw up.
Any suggestions?
gslender
20 Oct 2008, 1:14 PM
I've seen this when an exception was thrown for some reason etc... I would guess that is what is happening here too.
posta07
20 Oct 2008, 1:20 PM
That's what I was thinking, but I did not see any exceptions bubbling up. I'll investigate a little further.
I am perplexed, though, that the error occurs in Mozilla but not IE... lol.. usually it's the other way around.
cravemusic
20 Oct 2008, 2:03 PM
To be more specific, I've seen this when a Java Runtime exception is thrown, like a NullPointerException, ClassCastException, or IllegalArguementException. Javascript is unable to handle these specific exception types, so it stops execution completely. No information about a specific exception type being the problem will be available from the browser because it doesn't even understand that an exception was thrown in these cases. The way to fix this is to catch the generic Exception object.
posta07
20 Oct 2008, 2:06 PM
I really do appreciate all your responses.
I am somewhat more at ease now, because you're probably both right.
I just found that we have a major database problem. That certainly would cause exceptions to be thrown lol.
gslender
20 Oct 2008, 2:11 PM
when I added this to my app, I found a bunch of web-mode issues that were silently happening without browser errors.... worth adding
GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
public void onUncaughtException(Throwable caught) {
ErrorDialog.handleError(caught);
}
});
ErrorDialog just shows the error to the user... and I take it from there...
posta07
20 Oct 2008, 2:18 PM
Thanks man. I'll definitely add that.
Cheers
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.