Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Cristiano Costantini
t; > -Nick > > From: Cristiano Costantini > Date: Thu Jun 30 2016 14:57:18 GMT-0400 (EDT) > To: user@karaf.apache.org > Subject: Reasons that triggers IllegalStateException: Invalid > BundleContext > > Hello All, > > I'n our application i

Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Nick Baker
Costantini mailto:cristiano.costant...@gmail.com>> Date: Thu Jun 30 2016 14:57:18 GMT-0400 (EDT) To: user@karaf.apache.org mailto:user@karaf.apache.org>> Subject: Reasons that triggers IllegalStateException: Invalid BundleContext Hello All, I'n our application it happen sometime to find in

Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Jean-Baptiste Onofré
e "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

Re: Reasons that triggers IllegalStateException: Invalid BundleContext

2016-06-30 Thread Tim Ward
d to use a BundleContext at all. Best Regards, Tim Ward OSGi Alliance IoT EG Chair > On 30 Jun 2016, at 15:57, Cristiano Costantini > wrote: > > Hello All, > > I'n our application it happen sometime to find in situations where we get the &g

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 ar

Re: Invalid BundleContext

2015-11-13 Thread Achim Nierbeck
karaf and restart it. > Any help regarding this appreciated. > > > > Scott > > > > Caused by: java.lang.IllegalStateException: Invalid BundleContext. > > at > org.apache.felix.framework.BundleContextImpl

Invalid BundleContext

2015-11-13 Thread Leschke, Scott
ed by: java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:427)

Re: What to do about an invalid bundleContext in a karaf bundle in a test?

2015-08-28 Thread Benson Margulies
After further fussing, I now have a situation where karaf 'hangs' after logging an intent to install one of my bundles, and then fails with a 'Cannot get the remote bundle context' exception from pax-exam/rbc. This is at log level DEBUG. In Karaf 4, are mirrors still not read from settings.xml? I

Re: What to do about an invalid bundleContext in a karaf bundle in a test?

2015-08-28 Thread Benson Margulies
This is a pax-exam test using pax-exam 4.6.0 and karaf 4.0.1. The test >> hangs after producing this message. >> >> 2015-08-27 19:49:41,138 | WARN | pool-10-thread-1 | Activator >> | 8 - org.apache.karaf.features.core

Re: What to do about an invalid bundleContext in a karaf bundle in a test?

2015-08-27 Thread Jean-Baptiste Onofré
es.core - 4.0.1 | Error starting activator java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)[org.apache.felix.framework-5.0.1.jar:] at org.apache.felix.framework.BundleContextImpl.registerService(BundleC

What to do about an invalid bundleContext in a karaf bundle in a test?

2015-08-27 Thread Benson Margulies
This is a pax-exam test using pax-exam 4.6.0 and karaf 4.0.1. The test hangs after producing this message. 2015-08-27 19:49:41,138 | WARN | pool-10-thread-1 | Activator | 8 - org.apache.karaf.features.core - 4.0.1 | Error starting activator java.lang.IllegalStateException: Invalid

Invalid BundleContext

2014-12-04 Thread asookazian2
What does it mean if all the bundles as per bundle:list cmd are in active state but I see "java.lang.IllegalStateException: Invalid BundleContext" in the log? -- View this message in context: http://karaf.922171.n3.nabble.com/Invalid-BundleContext-tp4036976.html Sent from the Ka

RE: blueprintBundleContext => Invalid BundleContext

2013-06-06 Thread CLEMENT Jean-Philippe
Well, I tried several things and found that first injected BundleContext (via ref="blueprintBundleContext") works, but then all restart injects a context which does not work and gives an Invalid BundleContext exception. I can't explain why it works only first - help! JP [

blueprintBundleContext => Invalid BundleContext

2013-06-06 Thread CLEMENT Jean-Philippe
Dear Karaf Team, I inject the BundleContext using the Blueprint reference ref="blueprintBundleContext". When I try to register a service to this context, I get the following exception: java.lang.IllegalStateException: Invalid BundleContext. As it was injected, how can it

Re: Error while loading components of bundle - Invalid BundleContext

2012-04-23 Thread Johan Ström
| our-package-name | ? ? | 68 - our-package-name - 1.2.1.0 | [com.our.bundle.component.Class] Cannot register Component java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkVal

Error while loading components of bundle - Invalid BundleContext

2012-04-23 Thread Johan Ström
| 45 - org.apache.felix.scr - 1.6.0 | Error while loading components of bundle our-bundle-name/98 java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:365)[org.apache.felix.framework-3.0.9.jar:]