osgi-jax-rs-connector icon indicating copy to clipboard operation
osgi-jax-rs-connector copied to clipboard

OSGi runtime suffers from deadlocks

Open erdalkaraca opened this issue 8 years ago • 2 comments

Hi, I cannot extract a reproducible example to prove this, but just by including the publisher bundle in my (Eclipse) product and launching it, the OSGi runtime complains:

Getting a lock required more than 10000 ms. There might be a synchronization problem in this callstack or just the build/dispose process of some components took too long!

Whenever I start the product without the publisher, the (equinox) application starts (as expected).

I think this is a classloader issue. Did anyone else encounter this behavior?

erdalkaraca avatar Aug 12 '16 17:08 erdalkaraca

I run this framework all the time and I haven't seen this problem.

BryanHunt avatar Aug 12 '16 17:08 BryanHunt

@BryanHunt can you try with this classloader setting:

-Dorg.osgi.framework.bundle.parent=ext

If I remove that setting, the application starts.

erdalkaraca avatar Aug 12 '16 17:08 erdalkaraca