Search code examples
javaosgiapache-felix

Blacklisting ServiceReference


I am developing a Java application in order to manage event in the OSGi framework. However, I have a warning as following:

WARNING: EventAdmin: Blacklisting ServiceReference [[org.osgi.service.event.EventHandler] | Bundle(Scheduler [1])] due to timeout!

I know I could solve the problem through the properties of the OSGi server. However, I would like to solve it through code. But, I do not know how I should manage the Event Handler in my Java class in order to avoid this problem. Could any one help me with this issue?

Thank you very much in advance


Solution

  • The problem that is reported is quite bad, an event handler is called and does not return.

    So the only way out of this is to find out why this handler is not returning from its event method. The object that does not return is identified by the ServiceReference.