org.osgi.framework.BundleException: Unable to start bundle

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. java.lang.RuntimeException

    There is no bundle context available yet. Instatiate this class in STARTING or ACTIVE state only

    at org.glassfish.hk2.osgiresourcelocator.ServiceLoaderImpl.<init>()
  2. OSGi resource locator bundle - used by various API providers that rely on META-INF/services mechanism to locate providers.
    Activator.start
    1. org.glassfish.hk2.osgiresourcelocator.ServiceLoaderImpl.<init>(ServiceLoaderImpl.java:74)
    2. org.glassfish.hk2.osgiresourcelocator.Activator.start(Activator.java:51)
    2 frames
  3. org.apache.felix
    PojoServiceRegistryFactoryImpl.newPojoServiceRegistry
    1. org.apache.felix.connect.PojoSRBundle.start(PojoSRBundle.java:153)
    2. org.apache.felix.connect.PojoSR.startBundles(PojoSR.java:304)
    3. org.apache.felix.connect.PojoSR.<init>(PojoSR.java:248)
    4. org.apache.felix.connect.PojoSR.<init>(PojoSR.java:129)
    5. org.apache.felix.connect.PojoServiceRegistryFactoryImpl.newPojoServiceRegistry(PojoServiceRegistryFactoryImpl.java:52)
    5 frames
  4. Camel :: Test Blueprint
    CamelBlueprintTestSupport.setUp
    1. org.apache.camel.test.blueprint.CamelBlueprintHelper.createBundleContext(CamelBlueprintHelper.java:173)
    2. org.apache.camel.test.blueprint.CamelBlueprintHelper.createBundleContext(CamelBlueprintHelper.java:119)
    3. org.apache.camel.test.blueprint.CamelBlueprintTestSupport.createBundleContext(CamelBlueprintTestSupport.java:116)
    4. org.apache.camel.test.blueprint.CamelBlueprintTestSupport.setUp(CamelBlueprintTestSupport.java:230)
    4 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  6. JUnit
    JUnitCore.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
    5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    6. org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    7. org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    8. org.junit.rules.RunRules.evaluate(RunRules.java:20)
    9. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    10. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    11. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    12. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    13. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    14. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    15. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    16. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    17. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    18. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    19. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    19 frames
  7. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  8. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
    2 frames
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  10. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame