java.lang.IllegalStateException: BundleContext is no longer valid

felix-users | Jeremias Maerki | 7 years ago
  1. 0

    Re: [FileInstall] BundleException(s) while re-deploying a Spring-enabled bundle

    felix-users | 7 years ago | Jeremias Maerki
    java.lang.IllegalStateException: BundleContext is no longer valid
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    [Camel] "BundleContext is no longer valid" error after restarting/reinstalling Camel+Kura quickstart bundle

    GitHub | 7 months ago | hekonsek
    org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: seda://myapp:xmltopic due to: Cannot auto create component: seda

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      BundleContext is no longer valid

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid()
    2. Eclipse OSGi
      BundleContextImpl.getServiceReferences
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid(BundleContextImpl.java:1000)
      2. org.eclipse.osgi.framework.internal.core.BundleContextImpl.getServiceReferences(BundleContextImpl.java:571)
      2 frames
    3. Spring OSGi Core
      OsgiServiceReferenceUtils.isServicePresent
      1. org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159)
      2. org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195)
      3. org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327)
      3 frames
    4. org.springframework.osgi
      DependencyWaiterApplicationContextExecutor.refresh
      1. org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82)
      2. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287)
      3. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40)
      4. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213)
      5. org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124)
      6. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209)
      7. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248)
      8. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
      8 frames
    5. Spring OSGi Core
      AbstractDelegatedExecutionApplicationContext.refresh
      1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
      1 frame
    6. org.springframework.osgi
      ContextLoaderListener$2.run
      1. org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame