camel mbean is not removed even after uninstalling in case if there is a route with duplicate id.

Solution Verified - Updated -

Issue

  • there are two routes with the same ID, the camel related jmx mbeans remain even after uninstalling the bundle.
07:35:57,806 | ERROR | l Console Thread | BlueprintCamelContext            | 211 - org.apache.camel.camel-blueprint - 2.15.1.redhat-621177 | Error occurred during starting Camel: CamelContext(camel-1) due Failed to start route timerToLog because of duplicate id detected: timerToLog. Please correct ids to be unique among all your routes.
org.apache.camel.FailedToStartRouteException: Failed to start route timerToLog because of duplicate id detected: timerToLog. Please correct ids to be unique among all your routes.
    at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:827)
    at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2897)
    at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2620)
    at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)
    at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2469)
    at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2465)
    at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2488)
    at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2465)
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2434)
    at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:184)[211:org.apache.camel.camel-blueprint:2.15.1.redhat-621177]
    at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:228)[211:org.apache.camel.camel-blueprint:2.15.1.redhat-621177]
    at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:154)[211:org.apache.camel.camel-blueprint:2.15.1.redhat-621177]
    at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
    at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
    at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)
    at org.apache.felix.framework.Felix.registerService(Felix.java:3431)
    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:353)
    at org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:104)[211:org.apache.camel.camel-blueprint:2.15.1.redhat-621177]
    at sun.reflect.NativeMethodAcces

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.