First, I will review the logging configuration of your OSGi structure. He must record these exceptions.
If this does not work, you can simply enter this type of code in your annotated method
catch (Exception ex) { // or RuntimeException if possible // log it // then rethrow throw ex; }
Note that this is considered an anti-pattern for some due to the repeated stack traces that it tends to create.
It can also be carried over to the aspect, although it can cause pain in OSGi.
source share