You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Oleg Cohen <ol...@assurebridge.com> on 2020/10/29 02:45:31 UTC

No component with id 'blueprintBundle' could be found when stopping/restarting a bundle with Camel

Greetings,

Looking for help with this error. I have a bundle that has a camel route. Every time I stop/restart the bundle I see the following error:

org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found

This route is very small and it is initialized via a custom builder like this:

<routeBuilder ref=“notificationsRouteBuilder"/>

A full stack trace is below.

Would appreciate any help/insight on this!

Thank you,
Oleg


2020-10-28T22:40:14,531 | INFO  | pipe-restart infocus.core.demo | DefaultShutdownStrategy          | 126 - org.apache.camel.camel-base - 3.6.0 | Graceful shutdown of 1 routes completed in 0 seconds
2020-10-28T22:40:14,536 | INFO  | pipe-restart infocus.core.demo | CoreTypeConverterRegistry        | 126 - org.apache.camel.camel-base - 3.6.0 | TypeConverterRegistry utilization[noop=0, attempts=2, hits=2, misses=0, failures=0] mappings[total=216, misses=0]
2020-10-28T22:40:14,536 | WARN  | pipe-restart infocus.core.demo | AbstractCamelContext             | 126 - org.apache.camel.camel-base - 3.6.0 | Error occurred while stopping lifecycle strategies. This exception will be ignored.
org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:805) ~[?:?]
	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:104) ~[?:?]
	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:100) ~[?:?]
	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.findByType(BlueprintContainerBeanRepository.java:94) ~[?:?]
	at org.apache.camel.support.DefaultRegistry.findByType(DefaultRegistry.java:203) ~[!/:3.6.0]
	at org.apache.camel.impl.engine.OnCamelContextLifecycleStrategy.onContextStopped(OnCamelContextLifecycleStrategy.java:125) ~[!/:3.6.0]
	at org.apache.camel.impl.engine.AbstractCamelContext.doStop(AbstractCamelContext.java:2941) [!/:3.6.0]
	at org.apache.camel.support.service.BaseService.stop(BaseService.java:156) [!/:3.6.0]
	at org.apache.camel.impl.engine.AbstractCamelContext.stop(AbstractCamelContext.java:2453) [!/:3.6.0]
	at org.apache.camel.blueprint.BlueprintCamelContext.destroy(BlueprintCamelContext.java:145) [!/:3.6.0]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:337) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:835) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:742) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:434) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:778) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:987) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:923) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:336) [!/:1.10.2]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at org.apache.aries.blueprint.container.BlueprintExtender.destroyContainer(BlueprintExtender.java:357) [!/:1.10.2]
	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:249) [!/:1.10.2]
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [!/:1.10.2]
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [!/:1.10.2]
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [!/:1.10.2]
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [!/:1.10.2]
	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [!/:1.10.2]
	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) [org.apache.felix.framework-5.6.12.jar:?]
	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [org.apache.felix.framework-5.6.12.jar:?]
	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [org.apache.felix.framework-5.6.12.jar:?]
	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [org.apache.felix.framework-5.6.12.jar:?]
	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2626) [org.apache.felix.framework-5.6.12.jar:?]
	at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1038) [org.apache.felix.framework-5.6.12.jar:?]
	at org.apache.karaf.bundle.command.Restart.doExecute(Restart.java:44) [!/:?]
	at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) [!/:?]
	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [!/:4.2.10]
	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [!/:4.2.10]
	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [!/:4.2.10]
	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [!/:4.2.10]
	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [!/:4.2.10]
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [!/:4.2.10]
	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [!/:4.2.10]
	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [!/:4.2.10]
	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [!/:4.2.10]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]

Re: No component with id 'blueprintBundle' could be found when stopping/restarting a bundle with Camel

Posted by Oleg Cohen <ol...@assurebridge.com>.
Thank you, JB!

> On Oct 29, 2020, at 1:51 AM, Jean-Baptiste Onofre <jb...@nanthrax.net> wrote:
> 
> Hi,
> 
> blueprintBundle is a implicite blueprint bean containing the bundle context.
> 
> This bean is used in the camel blueprint. It seems that the bean is destroyed before camel context, causing this issue.
> It’s an improvement to do on camel blueprint to manage the cycle.
> I will create a Jira and fix that at Camel.
> 
> Regards
> JB
> 
>> Le 29 oct. 2020 à 03:45, Oleg Cohen <oleg.cohen@assurebridge.com <ma...@assurebridge.com>> a écrit :
>> 
>> Greetings,
>> 
>> Looking for help with this error. I have a bundle that has a camel route. Every time I stop/restart the bundle I see the following error:
>> 
>> org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
>> 
>> This route is very small and it is initialized via a custom builder like this:
>> 
>> <routeBuilder ref=“notificationsRouteBuilder"/>
>> 
>> A full stack trace is below.
>> 
>> Would appreciate any help/insight on this!
>> 
>> Thank you,
>> Oleg
>> 
>> 
>> 2020-10-28T22:40:14,531 | INFO  | pipe-restart infocus.core.demo | DefaultShutdownStrategy          | 126 - org.apache.camel.camel-base - 3.6.0 | Graceful shutdown of 1 routes completed in 0 seconds
>> 2020-10-28T22:40:14,536 | INFO  | pipe-restart infocus.core.demo | CoreTypeConverterRegistry        | 126 - org.apache.camel.camel-base - 3.6.0 | TypeConverterRegistry utilization[noop=0, attempts=2, hits=2, misses=0, failures=0] mappings[total=216, misses=0]
>> 2020-10-28T22:40:14,536 | WARN  | pipe-restart infocus.core.demo | AbstractCamelContext             | 126 - org.apache.camel.camel-base - 3.6.0 | Error occurred while stopping lifecycle strategies. This exception will be ignored.
>> org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
>> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:805) ~[?:?]
>> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:104) ~[?:?]
>> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:100) ~[?:?]
>> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.findByType(BlueprintContainerBeanRepository.java:94) ~[?:?]
>> 	at org.apache.camel.support.DefaultRegistry.findByType(DefaultRegistry.java:203) ~[!/:3.6.0]
>> 	at org.apache.camel.impl.engine.OnCamelContextLifecycleStrategy.onContextStopped(OnCamelContextLifecycleStrategy.java:125) ~[!/:3.6.0]
>> 	at org.apache.camel.impl.engine.AbstractCamelContext.doStop(AbstractCamelContext.java:2941) [!/:3.6.0]
>> 	at org.apache.camel.support.service.BaseService.stop(BaseService.java:156) [!/:3.6.0]
>> 	at org.apache.camel.impl.engine.AbstractCamelContext.stop(AbstractCamelContext.java:2453) [!/:3.6.0]
>> 	at org.apache.camel.blueprint.BlueprintCamelContext.destroy(BlueprintCamelContext.java:145) [!/:3.6.0]
>> 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>> 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
>> 	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
>> 	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
>> 	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:337) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:835) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:742) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:434) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:778) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:987) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:923) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:336) [!/:1.10.2]
>> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
>> 	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
>> 	at org.apache.aries.blueprint.container.BlueprintExtender.destroyContainer(BlueprintExtender.java:357) [!/:1.10.2]
>> 	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:249) [!/:1.10.2]
>> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [!/:1.10.2]
>> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [!/:1.10.2]
>> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [!/:1.10.2]
>> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [!/:1.10.2]
>> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [!/:1.10.2]
>> 	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) [org.apache.felix.framework-5.6.12.jar:?]
>> 	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [org.apache.felix.framework-5.6.12.jar:?]
>> 	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [org.apache.felix.framework-5.6.12.jar:?]
>> 	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [org.apache.felix.framework-5.6.12.jar:?]
>> 	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2626) [org.apache.felix.framework-5.6.12.jar:?]
>> 	at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1038) [org.apache.felix.framework-5.6.12.jar:?]
>> 	at org.apache.karaf.bundle.command.Restart.doExecute(Restart.java:44) [!/:?]
>> 	at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) [!/:?]
>> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [!/:4.2.10]
>> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [!/:4.2.10]
>> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [!/:4.2.10]
>> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [!/:4.2.10]
>> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [!/:4.2.10]
>> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [!/:4.2.10]
>> 	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [!/:4.2.10]
>> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [!/:4.2.10]
>> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [!/:4.2.10]
>> 	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
>> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
>> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
>> 	at java.lang.Thread.run(Thread.java:834) [?:?]
> 


Re: No component with id 'blueprintBundle' could be found when stopping/restarting a bundle with Camel

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

blueprintBundle is a implicite blueprint bean containing the bundle context.

This bean is used in the camel blueprint. It seems that the bean is destroyed before camel context, causing this issue.
It’s an improvement to do on camel blueprint to manage the cycle.
I will create a Jira and fix that at Camel.

Regards
JB

> Le 29 oct. 2020 à 03:45, Oleg Cohen <ol...@assurebridge.com> a écrit :
> 
> Greetings,
> 
> Looking for help with this error. I have a bundle that has a camel route. Every time I stop/restart the bundle I see the following error:
> 
> org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
> 
> This route is very small and it is initialized via a custom builder like this:
> 
> <routeBuilder ref=“notificationsRouteBuilder"/>
> 
> A full stack trace is below.
> 
> Would appreciate any help/insight on this!
> 
> Thank you,
> Oleg
> 
> 
> 2020-10-28T22:40:14,531 | INFO  | pipe-restart infocus.core.demo | DefaultShutdownStrategy          | 126 - org.apache.camel.camel-base - 3.6.0 | Graceful shutdown of 1 routes completed in 0 seconds
> 2020-10-28T22:40:14,536 | INFO  | pipe-restart infocus.core.demo | CoreTypeConverterRegistry        | 126 - org.apache.camel.camel-base - 3.6.0 | TypeConverterRegistry utilization[noop=0, attempts=2, hits=2, misses=0, failures=0] mappings[total=216, misses=0]
> 2020-10-28T22:40:14,536 | WARN  | pipe-restart infocus.core.demo | AbstractCamelContext             | 126 - org.apache.camel.camel-base - 3.6.0 | Error occurred while stopping lifecycle strategies. This exception will be ignored.
> org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:805) ~[?:?]
> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:104) ~[?:?]
> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:100) ~[?:?]
> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.findByType(BlueprintContainerBeanRepository.java:94) ~[?:?]
> 	at org.apache.camel.support.DefaultRegistry.findByType(DefaultRegistry.java:203) ~[!/:3.6.0]
> 	at org.apache.camel.impl.engine.OnCamelContextLifecycleStrategy.onContextStopped(OnCamelContextLifecycleStrategy.java:125) ~[!/:3.6.0]
> 	at org.apache.camel.impl.engine.AbstractCamelContext.doStop(AbstractCamelContext.java:2941) [!/:3.6.0]
> 	at org.apache.camel.support.service.BaseService.stop(BaseService.java:156) [!/:3.6.0]
> 	at org.apache.camel.impl.engine.AbstractCamelContext.stop(AbstractCamelContext.java:2453) [!/:3.6.0]
> 	at org.apache.camel.blueprint.BlueprintCamelContext.destroy(BlueprintCamelContext.java:145) [!/:3.6.0]
> 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
> 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
> 	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
> 	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> 	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:337) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:835) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:742) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:434) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:778) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:987) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:923) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:336) [!/:1.10.2]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> 	at org.apache.aries.blueprint.container.BlueprintExtender.destroyContainer(BlueprintExtender.java:357) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:249) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [!/:1.10.2]
> 	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2626) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1038) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.karaf.bundle.command.Restart.doExecute(Restart.java:44) [!/:?]
> 	at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) [!/:?]
> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [!/:4.2.10]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [!/:4.2.10]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [!/:4.2.10]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
> 	at java.lang.Thread.run(Thread.java:834) [?:?]


Re: No component with id 'blueprintBundle' could be found when stopping/restarting a bundle with Camel

Posted by Oleg Cohen <ol...@assurebridge.com>.
BTW, I asked this before. I saw someone else asking. This is on 4.2.10.

> On Oct 28, 2020, at 10:45 PM, Oleg Cohen <ol...@assurebridge.com> wrote:
> 
> Greetings,
> 
> Looking for help with this error. I have a bundle that has a camel route. Every time I stop/restart the bundle I see the following error:
> 
> org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
> 
> This route is very small and it is initialized via a custom builder like this:
> 
> <routeBuilder ref=“notificationsRouteBuilder"/>
> 
> A full stack trace is below.
> 
> Would appreciate any help/insight on this!
> 
> Thank you,
> Oleg
> 
> 
> 2020-10-28T22:40:14,531 | INFO  | pipe-restart infocus.core.demo | DefaultShutdownStrategy          | 126 - org.apache.camel.camel-base - 3.6.0 | Graceful shutdown of 1 routes completed in 0 seconds
> 2020-10-28T22:40:14,536 | INFO  | pipe-restart infocus.core.demo | CoreTypeConverterRegistry        | 126 - org.apache.camel.camel-base - 3.6.0 | TypeConverterRegistry utilization[noop=0, attempts=2, hits=2, misses=0, failures=0] mappings[total=216, misses=0]
> 2020-10-28T22:40:14,536 | WARN  | pipe-restart infocus.core.demo | AbstractCamelContext             | 126 - org.apache.camel.camel-base - 3.6.0 | Error occurred while stopping lifecycle strategies. This exception will be ignored.
> org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:805) ~[?:?]
> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:104) ~[?:?]
> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.lookupByType(BlueprintContainerBeanRepository.java:100) ~[?:?]
> 	at org.apache.camel.blueprint.BlueprintContainerBeanRepository.findByType(BlueprintContainerBeanRepository.java:94) ~[?:?]
> 	at org.apache.camel.support.DefaultRegistry.findByType(DefaultRegistry.java:203) ~[!/:3.6.0]
> 	at org.apache.camel.impl.engine.OnCamelContextLifecycleStrategy.onContextStopped(OnCamelContextLifecycleStrategy.java:125) ~[!/:3.6.0]
> 	at org.apache.camel.impl.engine.AbstractCamelContext.doStop(AbstractCamelContext.java:2941) [!/:3.6.0]
> 	at org.apache.camel.support.service.BaseService.stop(BaseService.java:156) [!/:3.6.0]
> 	at org.apache.camel.impl.engine.AbstractCamelContext.stop(AbstractCamelContext.java:2453) [!/:3.6.0]
> 	at org.apache.camel.blueprint.BlueprintCamelContext.destroy(BlueprintCamelContext.java:145) [!/:3.6.0]
> 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
> 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
> 	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
> 	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> 	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:337) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:835) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:742) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:434) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:778) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:987) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:923) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:336) [!/:1.10.2]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> 	at org.apache.aries.blueprint.container.BlueprintExtender.destroyContainer(BlueprintExtender.java:357) [!/:1.10.2]
> 	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:249) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [!/:1.10.2]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [!/:1.10.2]
> 	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2626) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1038) [org.apache.felix.framework-5.6.12.jar:?]
> 	at org.apache.karaf.bundle.command.Restart.doExecute(Restart.java:44) [!/:?]
> 	at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) [!/:?]
> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [!/:4.2.10]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [!/:4.2.10]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [!/:4.2.10]
> 	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [!/:4.2.10]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
> 	at java.lang.Thread.run(Thread.java:834) [?:?]