java.lang.IllegalStateException: BundleContext is no longer valid

Eclipse Bugzilla | eclipse-bug | 10 years ago
  1. 0

    EclipseStarter.shutdown() doesn't shut down a TCP/IP console

    Eclipse Bugzilla | 10 years ago | eclipse-bug
    java.lang.IllegalStateException: BundleContext is no longer valid
  2. 0

    Akrogen Blog

    developpez.com | 5 months ago
    java.lang.IllegalStateException: BundleContext is no longer valid
  3. 0

    o.e.update.configurator BundleException on stop at end of Unittests

    Eclipse Bugzilla | 7 years ago | martin.oberhuber
    org.osgi.framework.BundleException: Exception in org.eclipse.update.internal.configurator.ConfigurationActivator.stop() of bundle org.eclipse.update.configurator.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalStateException from preference injection when a bundle is stopped

    Eclipse Bugzilla | 7 years ago | bsd
    java.lang.IllegalStateException: BundleContext is no longer valid
  6. 0

    Hot deploy the attached unscoped plan(parreferencedplan.plan) which is referencing the attached par artifact(appA.par) Now try to refresh the bundleB.war by selecting it from admin console artifact tree and click on refresh button. Getting the below eventlogs in the console. bundleB.war(web bundle) is failed to start and unscoped plan(parreferencedplan.plan),par (appA.par) are in STARTING state. [2009-12-16 10:47:06.377] Thread-3 <WE0002I> Stopping web bundle 'appA-1-bundleB' version '1.0.0' with context path '/bundleBContext'. [2009-12-16 10:47:06.406] Thread-3 <WE0003I> Stopped web bundle 'appA-1-bundleB' version '1.0.0' with context path '/bundleBContext'. [2009-12-16 10:47:06.410] http-8080-1 <DE0010I> Stopping bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:06.441] http-8080-1 <DE0010I> Stopping par 'appA' version '1.0.0'. [2009-12-16 10:47:06.448] http-8080-1 <DE0010I> Stopping bundle 'appA-1-bundleA' version '1.0.0'. [2009-12-16 10:47:06.454] http-8080-1 <DE0011I> Stopped bundle 'appA-1-bundleA' version '1.0.0'. [2009-12-16 10:47:06.461] http-8080-1 <DE0010I> Stopping configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.469] http-8080-1 <DE0011I> Stopped configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.476] http-8080-1 <DE0010I> Stopping bundle 'appA-1-synthetic.context' version '1.0.0'. [2009-12-16 10:47:06.483] http-8080-1 <DE0011I> Stopped bundle 'appA-1-synthetic.context' version '1.0.0'. [2009-12-16 10:47:06.489] http-8080-1 <DE0010I> Stopping plan 'parreferenced.plan' version '1.0.0'. [2009-12-16 10:47:06.494] http-8080-1 <DE0011I> Stopped plan 'parreferenced.plan' version '1.0.0'. [2009-12-16 10:47:06.499] http-8080-1 <DE0011I> Stopped par 'appA' version '1.0.0'. [2009-12-16 10:47:06.505] http-8080-1 <DE0011I> Stopped bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:06.517] http-8080-1 <DE0004I> Starting plan 'parreferenced.plan' version '1.0.0'. [2009-12-16 10:47:06.523] http-8080-1 <DE0004I> Starting bundle 'appA-1-bundleA' version '1.0.0'. [2009-12-16 10:47:06.532] start-signalling-6 <DE0005I> Started bundle 'appA-1-bundleA' version '1.0.0'. [2009-12-16 10:47:06.533] http-8080-1 <DE0004I> Starting configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.556] http-8080-1 <DE0005I> Started configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.561] http-8080-1 <DE0004I> Starting configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.566] http-8080-1 <DE0005I> Started configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.571] http-8080-1 <DE0004I> Starting bundle 'appA-1-synthetic.context' version '1.0.0'. [2009-12-16 10:47:06.577] http-8080-1 <DE0004I> Starting par 'appA' version '1.0.0'. [2009-12-16 10:47:06.577] start-signalling-6 <DE0005I> Started bundle 'appA-1-synthetic.context' version '1.0.0'. [2009-12-16 10:47:06.586] http-8080-1 <DE0004I> Starting configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.591] http-8080-1 <DE0005I> Started configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.596] http-8080-1 <DE0004I> Starting configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.601] http-8080-1 <DE0005I> Started configuration 'foo' version '0.0.0'. [2009-12-16 10:47:06.606] http-8080-1 <DE0004I> Starting bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:06.610] Thread-3 <WE0000I> Starting web bundle 'bundleB' version '1.0.0' with context path '/bundleBContext'. [2009-12-16 10:47:06.613] http-8080-1 <DE0010I> Stopping bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:06.621] http-8080-1 <DE0011I> Stopped bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:09.028] http-8080-1 <DE0004I> Starting bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:09.033] Thread-3 <WE0000I> Starting web bundle 'bundleB' version '1.0.0' with context path '/bundleBContext'. [2009-12-16 10:47:09.046] Thread-3 <WE0004E> Failed to start web bundle 'bundleB' version '1.0.0': a web application with context path '/bundleBContext' already exists. [2009-12-16 10:47:09.053] start-signalling-7 <DE0006E> Start failed for bundle 'appA-1-bundleB' version '1.0.0'. com.springsource.kernel.deployer.core.DeploymentException: Web application failed to start at com.springsource.server.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:139) at com.springsource.kernel.install.artifact.internal.ArtifactStateMonitor.onStarted(ArtifactStateMonitor.java:215) at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:281) at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:278) at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:231) at com.springsource.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:150) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) Caused by: com.springsource.osgi.webcontainer.core.WebApplicationStartFailedException: com.springsource.osgi.webcontainer.core.spi.ContextPathExistsException: Context path '/bundleBContext' already exists at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:129) at com.springsource.server.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:130) ... 8 common frames omitted Caused by: com.springsource.osgi.webcontainer.core.spi.ContextPathExistsException: Context path '/bundleBContext' already exists at com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.checkContextPathIsFree(TomcatServletContainer.java:203) at com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:115) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:116) ... 9 common frames omitted [2009-12-16 10:47:09.069] start-signalling-7 <DE0010I> Stopping bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:09.075] start-signalling-7 <DE0011I> Stopped bundle 'appA-1-bundleB' version '1.0.0'. [2009-12-16 10:47:09.402] start-signalling-6 <ME0003I> Dump 'serviceability/dump/2009-12-16-10-47-741' generated The following summary is found in the dump. Exception: java.lang.IllegalStateException: BundleContext is no longer valid at org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getBundle(BundleContextImpl.java:151) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.getBundle(StandardWebContainer.java:159) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.constructServletContextProperties(StandardWebContainer.java:164) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.publishServletContext(StandardWebContainer.java:150) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:117) at com.springsource.server.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:130) at com.springsource.kernel.install.artifact.internal.ArtifactStateMonitor.onStarted(ArtifactStateMonitor.java:215) at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:281) at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:278) at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:231) at com.springsource.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:150) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 7 years ago | Radhika Madala (c)
    java.lang.IllegalStateException: BundleContext is no longer valid

    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
      FrameworkConsole.run
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid(BundleContextImpl.java:1305)
      2. org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:864)
      3. org.eclipse.osgi.framework.internal.core.FrameworkConsole$CommandProviderTracker.getServices(FrameworkConsole.java:455)
      4. org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:290)
      5. org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:278)
      6. org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:209)
      6 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame