Does it work if you actually configure a simple route like:
from("direct:foo").log("hello")
?
Regards
JB
> Le 29 juin 2020 à 11:32, Oleg Cohen <[email protected]> a écrit :
>
> Hi JB,
>
> No, nothing in my own code.
>
> This is a plain vanilla out-o-f-the-box example. No logic added yet.
>
> Here is my blueprint.xml file
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0
> <http://www.osgi.org/xmlns/blueprint/v1.0.0>"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> <http://www.w3.org/2001/XMLSchema-instance>"
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
> <http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0>"
> xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0
> <http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0>"
>
> xmlns:camel="http://camel.apache.org/schema/blueprint
> <http://camel.apache.org/schema/blueprint>"
>
> xsi:schemaLocation="
> http://www.osgi.org/xmlns/blueprint/v1.0.0
> <http://www.osgi.org/xmlns/blueprint/v1.0.0>
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
> <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>
>
> http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
> <http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0>
> http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
> <http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0>
> http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0
> <http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0>
> http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0
> <http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0>
>
> http://camel.apache.org/schema/blueprint
> <http://camel.apache.org/schema/blueprint>
> https://camel.apache.org/schema/blueprint/camel-blueprint.xsd
> <https://camel.apache.org/schema/blueprint/camel-blueprint.xsd>">
>
> <bean id="taxNotificationsRouteBuilder"
> class="com.ab.infocus.core.demo.xxx.XXXTaxNotificationsRouteBuilder">
>
> </bean>
>
> <camelContext
> xmlns="http://camel.apache.org/schema/blueprint
> <http://camel.apache.org/schema/blueprint>"
> typeConverterStatisticsEnabled="true"
> id="infocus-demo-services"
> threadNamePattern="Camel-Thread #counter#">
>
> <routeBuilder ref="taxNotificationsRouteBuilder"/>
>
> <threadPoolProfile id="myDefaultProfile"
> defaultProfile="true" poolSize="5" keepAliveTime="25"
> maxPoolSize="15" maxQueueSize="250"
> rejectedPolicy="Abort" />
>
> </camelContext>
>
>
> </blueprint>
>
> And here is the taxNotificationsRouteBuilder:
>
> package com.ab.infocus.core.demo.xxx;
>
> import org.apache.camel.LoggingLevel;
> import org.apache.camel.Processor;
> import org.apache.camel.builder.RouteBuilder;
> import org.apache.logging.log4j.LogManager;
> import org.apache.logging.log4j.Logger;
>
> public class XXXTaxNotificationsRouteBuilder extends RouteBuilder {
>
> private static final Logger logger =
> LogManager.getLogger(XXXTaxNotificationsRouteBuilder.class);
>
> @Override
> public void configure() throws Exception {
>
> }
> }
>
>
>
>
>
>
> On Mon, Jun 29, 2020 at 5:26 AM Jean-Baptiste Onofre <[email protected]
> <mailto:[email protected]>> wrote:
> Hi,
>
> It sounds like a race condition where you destroy the blueprint container and
> after you are destroying the beans in the blueprint container.
>
> I guess you are doing this by your own code right ?
>
> Regards
> JB
>
>> Le 29 juin 2020 à 11:23, Oleg Cohen <[email protected]
>> <mailto:[email protected]>> a écrit :
>>
>> Greetings,
>>
>> I am seeing this error when restarting a bunde with a CamelContex.
>>
>> No component with id 'blueprintBundle' could be found
>>
>> The stacktrace is below. I wonder if I am doing something wrong.
>>
>> Thank you!
>> Oleg
>>
>>
>> 2020-06-29T05:18:56,294 | INFO | pipe-update infocus.core.demo |
>> BlueprintExtender | 110 - org.apache.aries.blueprint.core -
>> 1.10.2 | Destroying container for blueprint bundle
>> infocus.core.demo/1.0.1.SNAPSHOT
>> 2020-06-29T05:18:56,302 | INFO | pipe-update infocus.core.demo |
>> AbstractCamelContext | 121 - org.apache.camel.camel-base - 3.4.0
>> | Apache Camel 3.4.0 (infocus-demo-services) is shutting down
>> 2020-06-29T05:18:56,304 | WARN | pipe-update infocus.core.demo |
>> AbstractCamelContext | 121 - org.apache.camel.camel-base - 3.4.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.4.0]
>> at
>> org.apache.camel.impl.engine.OnCamelContextLifecycleStrategy.onContextStop(OnCamelContextLifecycleStrategy.java:60)
>> ~[!/:3.4.0]
>> at
>> org.apache.camel.impl.engine.AbstractCamelContext.doStop(AbstractCamelContext.java:2909)
>> [!/:3.4.0]
>> at org.apache.camel.support.service.BaseService.stop(BaseService.java:155)
>> [!/:3.4.0]
>> at
>> org.apache.camel.blueprint.BlueprintCamelContext.destroy(BlueprintCamelContext.java:145)
>> [!/:3.4.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.Felix.updateBundle(Felix.java:2370)
>> [org.apache.felix.framework-5.6.12.jar:?]
>> at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:1018)
>> [org.apache.felix.framework-5.6.12.jar:?]
>> at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:1004)
>> [org.apache.felix.framework-5.6.12.jar:?]
>> at org.apache.karaf.bundle.command.Update.doExecute(Update.java:57) [!/:?]
>> at
>> org.apache.karaf.bundle.command.BundleCommand.execute(BundleCommand.java:49)
>> [!/:?]
>> at
>> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
>> [!/:4.2.9]
>> at
>> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>> [!/:4.2.9]
>> at
>> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>> [!/:4.2.9]
>> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599)
>> [!/:4.2.9]
>> at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526)
>> [!/:4.2.9]
>> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [!/:4.2.9]
>> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [!/:4.2.9]
>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [!/:4.2.9]
>> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [!/:4.2.9]
>> 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) [?:?]
>>
>> --
>> Oleg Cohen | Principal | A S S U R E B R I D G E
>> Office: +1 617 564 0737 <> | Mobile: +1 617 455 7927 <> | Fax: +1 888
>> 409 6995 <>
>> Email: [email protected] <mailto:[email protected]> |
>> www.assurebridge.com <http://www.assurebridge.com/>
>
>
> --
> Oleg Cohen | Principal | A S S U R E B R I D G E
> Office: +1 617 564 0737 <> | Mobile: +1 617 455 7927 <> | Fax: +1 888 409
> 6995 <>
> Email: [email protected] <mailto:[email protected]> |
> www.assurebridge.com <http://www.assurebridge.com/>