Home > Gwt, Java > Rooting out Exceptions in GWT

Rooting out Exceptions in GWT

I have a case where my gwt app loads in the client browser, performs an RPC call, receives the results and then stops.  I have no clue as to why.  Debuging on firebug and after the result (which show in the net panel and the script panel (firebug 1.4.0)) is returned, nothing is executed.  There are no errors, and breakpoints are never tripped.

I am building a special debug version now and there is a way to add a generic exception handler. I had used this before and forgotten about it until someone pointed it out to me again.

A quick example…

//chain handlers
private UncaughtExceptionHandler ueh;
ueh = GWT.getUncaughtExceptionHandler();
GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
  public void onUncaughtException(Throwable t) {
    logToConsole("AppController: Uncaught exception handled: " + t.getMessage());
    if (ueh != null) {
Categories: Gwt, Java
  1. No comments yet.
  1. No trackbacks yet.

Spam Protection by WP-SpamFree