A ok thanks but i still get WARN
19:07:40.977 WARN [FelixFrameworkWiring] 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

https://issues.apache.org/jira/browse/CAMEL-15760

Regards,
Michael.

________________________________
De : Jean-Baptiste Onofre <j...@nanthrax.net>
Envoyé : mercredi 2 décembre 2020 17:49
À : user@karaf.apache.org <user@karaf.apache.org>
Objet : Re: org.osgi.service.blueprint.container.NoSuchComponentException: No 
component with id 'blueprintBundle' could be found

You have camel-blueprint 3.6.0 available (just the location changed):

https://repo1.maven.org/maven2/org/apache/camel/karaf/camel-blueprint/

Regards
JB

Le 2 déc. 2020 à 17:36, michael e 
<michaelel...@outlook.fr<mailto:michaelel...@outlook.fr>> a écrit :

No 3.6.0 but for camel-blueprint 3.1.0 because this is the latest version 
available for this component

Regards,
Michael.

________________________________
De : Jean-Baptiste Onofre <j...@nanthrax.net<mailto:j...@nanthrax.net>>
Envoyé : mercredi 2 décembre 2020 17:31
À : user@karaf.apache.org<mailto:user@karaf.apache.org> 
<user@karaf.apache.org<mailto:user@karaf.apache.org>>
Objet : Re: org.osgi.service.blueprint.container.NoSuchComponentException: No 
component with id 'blueprintBundle' could be found

Which Camel version are you using ? Camel 3.1.0 ?

Regards
JB

Le 2 déc. 2020 à 16:42, michael e 
<michaelel...@outlook.fr<mailto:michaelel...@outlook.fr>> a écrit :

I also try

<bean id="shutdown-strategy" 
class="org.apache.camel.impl.engine.DefaultShutdownStrategy">
    <property name="timeout" value="1"/>
</bean>

with no effect here a more complete trace

16:40:52.694 INFO [pipe-stop 103] Destroying container for blueprint bundle 
test/1.0.0.SNAPSHOT
16:40:52.696 WARN [pipe-stop 103] Lifecycle strategy 
org.apache.camel.impl.engine.OnCamelContextLifecycleStrategy@1d951df2 failed on 
CamelContext (camel-4) due to: No component with id 'blueprintBundle' could be 
found. This exception will be ignored
16:40:52.696 INFO [pipe-stop 103] Apache Camel 3.6.0 (camel-4) is shutting down
16:40:52.697 INFO [pipe-stop 103] Starting to graceful shutdown 1 routes 
(timeout 1 seconds)
16:40:52.698 INFO [Camel (camel-4) thread #6 - ShutdownTask] Route: 
rest-test-route shutdown complete, was consuming from: timer://foo
16:40:52.698 INFO [pipe-stop 103] Graceful shutdown of 1 routes completed in 0 
seconds
16:40:52.700 WARN [pipe-stop 103] 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]

Michael.

________________________________

De : Jean-Baptiste Onofre <j...@nanthrax.net<mailto:j...@nanthrax.net>>
Envoyé : mercredi 2 décembre 2020 16:20
À : user@karaf.apache.org<mailto:user@karaf.apache.org> 
<user@karaf.apache.org<mailto:user@karaf.apache.org>>
Objet : Re: org.osgi.service.blueprint.container.NoSuchComponentException: No 
component with id 'blueprintBundle' could be found

OK. You have to reduce the timeout (grace period) on the camel shutdown 
strategy or increase blueprint timeout.

Did you try this ?

Regards
JB

Le 2 déc. 2020 à 16:11, michael e 
<michaelel...@outlook.fr<mailto:michaelel...@outlook.fr>> a écrit :

I wasn't aware about this timeout configuration (is not a simple service but a 
camel context)

Michael.

________________________________

De : michael e <michaelel...@outlook.fr<mailto:michaelel...@outlook.fr>>
Envoyé : mercredi 2 décembre 2020 16:04
À : user@karaf.apache.org<mailto:user@karaf.apache.org> 
<user@karaf.apache.org<mailto:user@karaf.apache.org>>
Objet : RE: org.osgi.service.blueprint.container.NoSuchComponentException: No 
component with id 'blueprintBundle' could be found

Hello JB,

Thanks for your response, i'm sorry i poste the wrong camel ticket (by the way 
i think claus already take care about this issue).

The ticket https://issues.apache.org/jira/browse/CAMEL-15760

Michael.

________________________________

De : Jean-Baptiste Onofre <j...@nanthrax.net<mailto:j...@nanthrax.net>>
Envoyé : mercredi 2 décembre 2020 16:00
À : user@karaf.apache.org<mailto:user@karaf.apache.org> 
<user@karaf.apache.org<mailto:user@karaf.apache.org>>
Objet : Re: org.osgi.service.blueprint.container.NoSuchComponentException: No 
component with id 'blueprintBundle' could be found

Hmm, it seems a mistake in the configuration between the blueprint timeout and 
the Camel Shutdown strategy, no ?

Do you consider this as a bug ?

Regards
JB

Le 2 déc. 2020 à 15:01, michael e 
<michaelel...@outlook.fr<mailto:michaelel...@outlook.fr>> a écrit :

Hello,

When i stop camel bundle using blueprint i get this 
org.osgi.service.blueprint.container.NoSuchComponentException: No component 
with id 'blueprintBundle' could be found
Karaf version is 4.3.0
camel-blueprint is 3.1.0

Related discussion:

https://issues.apache.org/jira/browse/CAMEL-14332
[CAMEL-14332] camel-blueprint - Camel route does not consider the value of 
ShutdownStrategy timeout. - ASF 
JIRA<https://issues.apache.org/jira/browse/CAMEL-14332>
So when the Shutdown strategy timeout is longer than one minute, the 
BlueprintEventDispatcher timeout is triggered for first, making the shutdown 
strategy useless.. The solution to this, is to remove the piece of code that 
handle the destroy event from BlueprintCamelContext.
issues.apache.org<http://issues.apache.org/>

Regards,
Michael.

Reply via email to