admin管理员组

文章数量:1352819

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 es in after I pile 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 .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 pile 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! :)

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 es in after I pile 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 .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 pile 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! :)

Share Improve this question asked Nov 9, 2010 at 18:05 Omar EstrellaOmar Estrella 6381 gold badge6 silver badges15 bronze badges 4
  • 1 What's the full stack trace? UmbrellaExceptions include what error caused it, further down the stack. – Jason Hall Commented Nov 9, 2010 at 18:42
  • There is no stack trace. The Chrome error console just shows that one exception and says "(anonymous function)" When just deploying locally using Eclipse, this exception doesnt occur, so there is no trace. – Omar Estrella Commented Nov 9, 2010 at 20:02
  • 1 put in a try catch and print the stack traces of the nested exceptions. – crowne Commented Nov 9, 2010 at 20:26
  • There is a generated try catch in the cache code. The cache is generated by GWT so we do not touch it. There also isnt any sort of correspondence with the Java, so theres no way to know where it originates from the code. – Omar Estrella Commented Nov 10, 2010 at 14:32
Add a ment  | 

3 Answers 3

Reset to default 2

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 plied to Javascript) had try/catch block which worked when executed in Java, but failed silently when piled 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.)

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

I had the same problem, it worked in development mode. Then, after I piled I would get an error. 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.

本文标签: javascriptWhat could cause an UmbrellaException anonymous function on deployed GWT appStack Overflow