Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9981

Invalid BundleContext resulting from the use of wrap protocol

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • jboss-fuse-6.3
    • Fabric8 v1
    • None
    • % %

    Description

      An Invalid BundleContext WARN message occurs when upgrading a container from 6.3 R4 to 6.3 R8.

      The log shows that a Camel route being deployed using the wrap protocol gets started twice, subsequently it get stopped twice however the follow error occurs on the second stop:

      2018-11-30 11:25:23,466 | WARN  | Timer-2          | EventHelper                      | 127 - org.apache.camel.camel-core - 2.17.0.redhat-630347 | Error notifying event Stopped route: {CamelRoute}. This exception will be ignored. 
      java.lang.IllegalStateException: Invalid BundleContext.
      	at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleContextImpl.getBundle(BundleContextImpl.java:112)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.camel.core.osgi.OsgiEventAdminNotifier.notify(OsgiEventAdminNotifier.java:73)[134:org.apache.camel.camel-spring:2.17.0.redhat-630347]
      	at org.apache.camel.util.EventHelper.doNotifyEvent(EventHelper.java:805)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.util.EventHelper.notifyRouteStopped(EventHelper.java:322)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.impl.RouteService.doStop(RouteService.java:253)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.support.ChildServiceSupport.stop(ChildServiceSupport.java:77)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.support.ChildServiceSupport.stop(ChildServiceSupport.java:101)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:142)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.util.ServiceHelper.stopAndShutdownService(ServiceHelper.java:205)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:3209)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:3234)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:3222)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:3057)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102)[127:org.apache.camel.camel-core:2.17.0.redhat-630347]
      	at org.apache.camel.spring.SpringCamelContext.maybeStop(SpringCamelContext.java:287)[134:org.apache.camel.camel-spring:2.17.0.redhat-630347]
      	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:144)[134:org.apache.camel.camel-spring:2.17.0.redhat-630347]
      	at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:340)[134:org.apache.camel.camel-spring:2.17.0.redhat-630347]
      	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)[179:org.apache.servicemix.bundles.spring-context:3.2.18.RELEASE_1]
      	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:335)[179:org.apache.servicemix.bundles.spring-context:3.2.18.RELEASE_1]
      	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1059)[179:org.apache.servicemix.bundles.spring-context:3.2.18.RELEASE_1]
      	at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleApplicationContext.java:197)[234:org.springframework.osgi.core:1.2.1]
      	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDelegatedExecutionApplicationContext.java:69)[234:org.springframework.osgi.core:1.2.1]
      	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegatedExecutionApplicationContext.java:214)[234:org.springframework.osgi.core:1.2.1]
      	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[234:org.springframework.osgi.core:1.2.1]
      	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDelegatedExecutionApplicationContext.java:210)[234:org.springframework.osgi.core:1.2.1]
      	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:374)[235:org.springframework.osgi.extender:1.2.1]
      	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:236)[234:org.springframework.osgi.core:1.2.1]
      	at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1020)[179:org.apache.servicemix.bundles.spring-context:3.2.18.RELEASE_1]
      	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$3.run(ContextLoaderListener.java:805)[235:org.springframework.osgi.extender:1.2.1]
      	at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:60)[235:org.springframework.osgi.extender:1.2.1]
      	at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)[179:org.apache.servicemix.bundles.spring-context:3.2.18.RELEASE_1]
      	at java.util.TimerThread.mainLoop(Timer.java:555)[:1.8.0_191]
      	at java.util.TimerThread.run(Timer.java:505)[:1.8.0_191]
      

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            rhn-support-jsherman Jason Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: