EventBus not throwing UmbrellaExceptions

21 views
Skip to first unread message

Aidan OK

unread,
Jan 20, 2012, 12:50:15 PM1/20/12
to google-we...@googlegroups.com
Recently, as I've started using the EventBus a lot more, I'm noticing it seems to be not throwing UmbrellaExceptions when for example, there is a NPE in one of the handlers. silently continuing instead. Anyone any idea on whats causing this, and how it can be avoided?

I suspect it might be because I'm firing more Events during the execution of a handler (or some method called from the handler) but even using deferred commands to fire events doesn't seem to help.

Setup is something like this:

Singleton 'backend' - Fires events on server push, or due to user request, uses main EventBus.
Activity - Creates a 'provider' object, giving it a RessetableEventBus. provider listens for events from backend, and fires its own events.
The activity subscribe to events from the provider. If these handlers throw a NPE/other exception, we never see it.







Aidan O'Kelly

unread,
Jan 20, 2012, 1:50:41 PM1/20/12
to google-we...@googlegroups.com
Ok, this was actually just me not realizing eclipse will open multiple 'development' tabs for each tab/instance of the app you have running. Doh.










--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XcYMZvSW5p0J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages