Being notified when a bundle throws exception - OSGi - Helios [message #779024] |
Sat, 14 January 2012 12:41 |
Zardosht Hodaie Messages: 4 Registered: December 2011 |
Junior Member |
|
|
Hi,
If a bundle throws an exception in osgi, the stack-trace is printed on
the osgi console. In the case, the bundle is in GUI thread of eclipse,
an error log entry apears in error log with "unhandled event loop
exception". I can add a listener to error log and get the IStatus object
related to that.
However if the bundle is not in GUI thread, there is not notification. I
want to be notified if a bundle throws an exception. I thought using
osgi logging service could help about it. However I could not get it to
work under Helios.
The question is how can I be notified if a bundle throws an exception in
osgi Helios.
Or if osgi logging does the work, how can I get osgi logging to work in
Helios? As much as I googled, there is apparently no implementation of
osgi loggin service currently integrated in helios. I downloaded the
equinox skd 3.6 from eclipse site that contains the bundle
org.eclipse.equinox.log, however I could add it as dependency to my
plugins, or install it in the osgi runtime.
Any help is really appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.04522 seconds