Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Cristiano Costantini
t; > -Nick > > From: Cristiano Costantini <cristiano.costant...@gmail.com> > Date: Thu Jun 30 2016 14:57:18 GMT-0400 (EDT) > To: user@karaf.apache.org <user@karaf.apache.org> > Subject: Reasons that triggers IllegalStateException: Invalid > BundleContext > > H

Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Nick Baker
Costantini <cristiano.costant...@gmail.com<mailto:cristiano.costant...@gmail.com>> Date: Thu Jun 30 2016 14:57:18 GMT-0400 (EDT) To: user@karaf.apache.org <user@karaf.apache.org<mailto:user@karaf.apache.org>> Subject: Reasons that triggers IllegalStateException: Invalid BundleContext Hello A

Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Jean-Baptiste Onofré
Hi Cristiano, I bet you have a refresh that cause the bundle context you are using doesn't exist anymore (recreated). Regards JB On 06/30/2016 04:57 PM, Cristiano Costantini wrote: Hello All, I'n our application it happen sometime to find in situations where we get the "Invalid

Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Tim Ward
Hi Cristiano, That exception means that you are trying to use a bundle context which is no longer valid because the bundle has been stopped. There are all sorts of ways that code can end up hanging on to a Bundle Context when it shouldn't, and it may be caused by something as simple as a race

Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Cristiano Costantini
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