Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7771501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:40:06+00:00 2026-06-01T16:40:06+00:00

After some debugging,I found com.google.gwt.event.shared.UmbrellaException:One or more exceptions caught, see full set in UmbrellaException#getCauses’

  • 0

After some debugging,I found “com.google.gwt.event.shared.UmbrellaException:One or
more exceptions caught, see full set in UmbrellaException#getCauses’ when calling method: [nsIDOMEventListener::handleEvent]”(in web model) is caused by runtime null pointer.Question is why this kind of runtime null pointer exception didn’t got thrown out under host model.Actually,blow code won’t thrown out any exception and even got alert popup in my laptop(gwt 2.4+java 7 64bit+ubuntu 12.04 64bit+eclipse 3.7).Anybody knows how to enforce eclipse throw out exception whenever a runtime null on JavascriptObject pointer occurs.

public class GWTTest implements EntryPoint
{
    public static class JsObj extends JavaScriptObject
    {
         protected JsObj()
         {
         }

         public final native void setValue(String Value)/*-{
                this.Value=Value;
                alert(Value);
         }-*/;
    }

    public void onModuleLoad()
    {
         JsObj jsObj = null;
         jsObj.setValue("val");
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:40:07+00:00Added an answer on June 1, 2026 at 4:40 pm

    The compiler performs a number of optimizations to transform GWT/Java into Javascript.

    • Types and methods are made final – this allows later steps to understand which methods need to be dispatched as normal, and which can be made static, just calling a single implementation.
    • Methods are made static, where possible, which allows methods to be inlined
    • Where possible and reasonable, methods are inlined

    That said… When I compile your sample, the body of onModuleLoad() is optimized out to this:

    null.nullMethod();
    

    This is the GWT compiler’s way of saying ‘this will never work’ – it notices that the value is always null, and so the method can’t be invoked on it. But in Dev Mode, apparently the null object is left pointing at the window object in JavaScript. This is filed at http://code.google.com/p/google-web-toolkit/issues/detail?id=6625 in the GWT project.

    If you need to make sure you don’t act on a null, test for null before calling the method – it’ll get optimized out if, in a test like yours, the value is always null. Runtime exceptions shouldn’t be used for controlling code anyway, so you should never rely on a NullPointerException to do anything in your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After some grueling debugging, I think I have found a bug in the iPad
I've been tasked with debugging a Java (J2SE) application which after some period of
After some experience with functional languages, I'm starting to use recursion more in Java
I migrated a VBA macro from PowerPoint 2007 to 2010 and after some debugging
Well, after four hours of debugging, confused as I could be, I found out
I was doing some debugging, trying to see how a condition for a promotion
After some find and replace refactoring I ended up with this gem: const class
After some time I wanted to update my git repo, and then something went
After some stupid musings about Klingon languages, that came from this post I began
After some years of experience in the field, it seems to me that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.