A more complete stack trace would help us point you to the offending code. I can say that I usually see this when a Service is still held by someone when it should have been removed from "play" by a ServiceTracker or other similar mechanism.
-Nick From: Cristiano Costantini <[email protected]<mailto:[email protected]>> Date: Thu Jun 30 2016 14:57:18 GMT-0400 (EDT) To: [email protected] <[email protected]<mailto:[email protected]>> Subject: Reasons that triggers IllegalStateException: Invalid BundleContext Hello All, I'n our application it happen sometime to find in situations where we get the "Invalid BundleContext" exception: java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453) What are the potential reasons such exception may be thrown? I'm searching to understand so I can hunt for a potential design issue in some of our bundles... I've searched the web but I've found no hint. Thank you! Cristiano
