java.lang.IllegalStateException: BundleContext is no longer valid

openhab.org | 3 months ago
  1. 0

    OH2 MQTT Binding error please help - Bindings - openHAB Community

    openhab.org | 3 months ago
    java.lang.IllegalStateException: BundleContext is no longer valid
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [BI 4.x] Issue in Configure Bi4.1 sp3 with ADS (Active Directory)

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

    DisposableBean issues when testing

    Google Groups | 1 decade ago | hal.hil...@gmail.com
    javax.management.RuntimeMBeanException: RuntimeException thrown in preDeregister method

    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.internal.framework.BundleContextImpl.checkValid()
    2. Eclipse OSGi
      BundleContextImpl.ungetService
      1. org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      2. org.eclipse.osgi.internal.framework.BundleContextImpl.ungetService(BundleContextImpl.java:659)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      2 frames
    3. OSGi
      ServiceTracker.close
      1. org.osgi.util.tracker.ServiceTracker.removedService(ServiceTracker.java:459)[org.osgi.core-6.0.0.jar:]
      2. org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:967)[org.osgi.core-6.0.0.jar:]
      3. org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
      4. org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)[org.osgi.core-6.0.0.jar:]
      5. org.osgi.util.tracker.ServiceTracker.close(ServiceTracker.java:377)[org.osgi.core-6.0.0.jar:]
      5 frames
    4. Apache Felix Declarative Services
      Activator$ScrExtension.destroy
      1. org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:549)[33:org.apache.felix.scr:2.0.2]
      2. org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:414)[33:org.apache.felix.scr:2.0.2]
      3. org.apache.felix.scr.impl.Activator.access$300(Activator.java:53)[33:org.apache.felix.scr:2.0.2]
      4. org.apache.felix.scr.impl.Activator$ScrExtension.destroy(Activator.java:273)[33:org.apache.felix.scr:2.0.2]
      4 frames
    5. Apache Felix Bundle Repository
      AbstractExtender$2.run
      1. org.apache.felix.utils.extender.AbstractExtender$2.run(AbstractExtender.java:290)[33:org.apache.felix.scr:2.0.2]
      1 frame
    6. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_65]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
      2 frames
    7. Apache Felix Bundle Repository
      AbstractExtender.bundleChanged
      1. org.apache.felix.utils.extender.AbstractExtender.destroyExtension(AbstractExtender.java:312)[33:org.apache.felix.scr:2.0.2]
      2. org.apache.felix.utils.extender.AbstractExtender.bundleChanged(AbstractExtender.java:186)[33:org.apache.felix.scr:2.0.2]
      2 frames
    8. Eclipse OSGi
      EquinoxBundle.update
      1. org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      2. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      3. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      4. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      5. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      6. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      7. org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      8. org.eclipse.osgi.container.ModuleContainer.update(ModuleContainer.java:342)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      9. org.eclipse.osgi.storage.Storage.update(Storage.java:713)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      10. org.eclipse.osgi.internal.framework.EquinoxBundle.update(EquinoxBundle.java:439)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
      10 frames
    9. org.apache.karaf
      FeaturesServiceImpl$1.call
      1. org.apache.karaf.features.internal.service.FeaturesServiceImpl.updateBundle(FeaturesServiceImpl.java:1185)[9:org.apache.karaf.features.core:4.0.4]
      2. org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:688)[9:org.apache.karaf.features.core:4.0.4]
      3. org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1089)[9:org.apache.karaf.features.core:4.0.4]
      4. org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:985)[9:org.apache.karaf.features.core:4.0.4]
      4 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65]
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65]
      4. java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
      4 frames