mkodekar / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

EventBus.LoggingSubscriberExceptionHandler drops an exception #1840

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The handleException() method on the LoggingSubscriberExceptionHandler is called 
with exception.getCause(). This is fine - it returns the target exception of 
the InvocationTargetException.
However, the handleException() method logs this failure with 
exception.getCause() which than skips one exception.

A simple workaround is to provide an own SubscriberExceptionHandler.

Guava version 18.

Original issue reported on code.google.com by stefan.l...@gmail.com on 3 Sep 2014 at 6:14

GoogleCodeExporter commented 9 years ago
Good catch. It looks like this is already fixed in some changes to EventBus for 
Guava 19, but we may need to consider an 18.0.1 release for this.

Original comment by cgdecker@google.com on 3 Sep 2014 at 6:30

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:07