Bug in 2.8.0-Snapshot

155 views
Skip to first unread message

Ali Akhtar

unread,
Jul 9, 2015, 11:08:15 PM7/9/15
to google-web-tool...@googlegroups.com
In 2.8.0-SNAPSHOT, when the ValueChangeEvent is triggered for a dropdown, I'm encountering the following stack trace:

Uncaught com.google.gwt.event.shared.UmbrellaException: Exception caught: Exception caught: (TypeError) : Cannot read property 'java_util_LinkedList_size' of undefined

com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V

com_google_gwt_user_client_ui_Widget_$onBrowserEvent__Lcom_google_gwt_user_client_ui_Widget_2Lcom_google_gwt_user_client_Event_2V

_.onBrowserEvent__Lcom_google_gwt_user_client_Event_2V

_.onBrowserEvent__Lcom_google_gwt_user_client_Event_2V

com_google_gwt_user_client_impl_DOMImplStandard_dispatchEvent__Lcom_google_gwt_user_client_Event_2V

(anonymous function)


This only happens in production, in SDM it works without any issues.

I'm not sure which line specifically causes this, because the stacktrace stops at the anonymous function. But, it seems to be around where I'm creating an autobean object. The first line of my event handler which shows a loading message, seems to get executed fine.

Would appreciate a speedy resolution to this, as this is in production. Thanks.

Colin Alworth

unread,
Jul 9, 2015, 11:18:26 PM7/9/15
to google-web-tool...@googlegroups.com
As this isn't a NPE (or a type error, which I think is the JS equivalent), the we're missing a step here. You are seeing an UmbrellaException thrown, which means not that the handlermanager or event wiring broke, but that your own handler threw the exception (i.e. the 'TypeError' described in the wrapper).

That trace is kept in the umbrella exception, and will likely be necessary to figure out what the real issue is. 

Also, the stack below the anon function won't be useful, that's very likely the wiring that calls into the widget event handling from the dom. 

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/f4b201e1-5a00-4681-a4ac-3505d7bbc291%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ali Akhtar

unread,
Jul 9, 2015, 11:35:06 PM7/9/15
to google-web-tool...@googlegroups.com
How can I get the cause / stacktrace behind the umbrella exception? I have a global exception handler which prints the exception to console: https://gist.github.com/aliakhtar/7a9bbb2d3796917179ed

What needs to be modified to get it to print the full trace?

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Contributors" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit-contributors/-hXkD147aS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CADcXZMxS%3D7pNHH%3DqHBsY3grOA3jUdq6P%2BPn2asgLGJmGJ-87Bg%40mail.gmail.com.

Ali Akhtar

unread,
Jul 9, 2015, 11:47:43 PM7/9/15
to google-web-tool...@googlegroups.com
I turned on:

<set-property name="compiler.stackMode" value="emulated" />
 <set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" />

However, still don't see the cause of the UmbrellaException

Goktug Gokdogan

unread,
Jul 10, 2015, 6:41:13 PM7/10/15
to google-web-toolkit-contributors
If you don't install your own uncaught exception handler, you should see it properly.

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages