Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Being notified when a bundle throws exception - OSGi - Helios
Being notified when a bundle throws exception - OSGi - Helios [message #779024] Sat, 14 January 2012 12:41
Zardosht Hodaie is currently offline Zardosht HodaieFriend
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.
Previous Topic:Custom Navigator: Error Message (Required filter missing)
Next Topic:Extending / Replacing bundle localization
Goto Forum:
  


Current Time: Tue Aug 11 19:48:00 GMT 2020

Powered by FUDForum. Page generated in 0.01912 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top