Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What could cause an UmbrellaException anonymous function on deployed GWT app?

I seem to be running into an odd problem. When using my GWT application in a local environment, everything works as it should. The problem comes in after I compile and deploy my application. When I go through my project workflow and click on a certain link to switch into 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 thrown by one of the cache file generated by GWT at compile time. But this never happens on the locally deployed program (deployed from Eclipse, "Run as Web Application"). Has anyone ever run into this issue or can provide any direction for a fix?

Thank you! :)

like image 890
Omar Estrella Avatar asked Nov 09 '10 18:11

Omar Estrella


2 Answers

I had the same problem just now. Works locally, fails with the mentioned Javascript console error, nothing in server logs.

Turns out that client Java code (which is complied to Javascript) had try/catch block which worked when executed in Java, but failed silently when compiled to Javascript. I'm still not sure what was the exact nature of the problem, but try removing try/catch blocks.

(It seems that in my case, table.getWidget() call was failing and throwing exception.)

like image 164
Domchi Avatar answered Oct 05 '22 19:10

Domchi


I had the same problem, i think interpretation of try catch is not the same than in Java... after gwt compilation, when you are in catch case, the execution failed. If you open firebug, you can see point of errors into JS.

like image 26
nicos Avatar answered Oct 05 '22 20:10

nicos