What can cause an anonymous UmbrellaException function for a deployed GWT application?

I seem to be confused by a strange problem. When using my GWT application in a local environment, everything works as it should. The problem occurs after compiling and deploying my application. When I look at the project workflow and click on a specific link to switch to a new panel, I get the following error (from my console in Chrome):

Uncaught com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses (anonymous function) 

This error is generated by one of the cache files generated by GWT at compile time. But this never happens in a locally deployed program (deployed from Eclipse, "Run as a web application"). Has anyone ever encountered this problem, or could have indicated any direction for correction?

Thanks!:)

+6
javascript caching exception gwt
source share
3 answers

I had the same problem just now. It works locally, fails with the specified Javascript console error, nothing in the server logs.

It turns out that the client Java code (which corresponds to Javascript) has a try / catch block that worked when executed in Java, but when compiled in Javascript it was not executed silently. I still don't know what the specific problem was, but try removing the try / catch blocks.

(It seems that in my case, the call to table.getWidget() was unsuccessful and threw an exception.)

+2
source share

I had the same problem, I think the interpretation of try catch is not the same as in Java ... after compiling gwt, when you are in catch mode, execution failed. If you open Firebug, you will see the error point in JS.

+1
source share

I had the same problem, it worked in development mode. Then, after compilation, I get an error message. To fix, I had to get rid of:

 try{ //some code } catch(NullPointerException ex){ //more code } 

Instead, I did:

 if(variable != null){ //some code } else { //more code } 

After that, it worked perfectly.

+1
source share

All Articles