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

Solution Verified - Updated -

Issue

  • We are trying to write a test case for one of our blueprint routes, but I can't get it to work reliably.
  • When we run the test a few times, sometimes the test passes, and sometimes we get an error saying:
Failed to create route route1 at: >>> To[mock:end] <<< in route: Route(route1)[[From[{{inbox}}]] -> [Log[Hello World!], To[mo... because of No component with id 'blueprintBundle' could be found

Caused by: org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'blueprintBundle' could be found
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:750)
        at org.apache.camel.blueprint.BlueprintContainerRegistry.lookupByType(BlueprintContainerRegistry.java:100)
        at org.apache.camel.blueprint.BlueprintContainerRegistry.findByTypeWithName(BlueprintContainerRegistry.java:75)
        at org.apache.camel.impl.CompositeRegistry.findByTypeWithName(CompositeRegistry.java:87)
        at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.findByTypeWithName(PropertyPlaceholderDelegateRegistry.java:70)
        at org.apache.camel.processor.interceptor.DefaultChannel.getOrCreateBacklogTracer(DefaultChannel.java:332)
        at org.apache.camel.processor.interceptor.DefaultChannel.initChannel(DefaultChannel.java:200)
        at org.apache.camel.model.ProcessorDefinition.wrapChannel(ProcessorDefinition.java:269)
        at org.apache.camel.model.ProcessorDefinition.wrapProcessor(ProcessorDefinition.java:251)
        at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:507)
        at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:213)
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:909)
        ... 42 more

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Aries Blueprint
  • Junit Testing

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content