Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8400

Classloader issues with queuingservice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 19.0.0
    • Fix Version/s: 19.0.0
    • Component/s: Architecture
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      The queuingservice component is failing to load inside Blueprint Camel contexts because of the following error:

      2016-05-04 21:16:21,437 | ERROR | pool-20-thread-1 | BlueprintCamelContext            | ?                                   ? | 218 - org.apache.camel.camel-blueprint - 2.14.1 | Error occurred during starting Camel: CamelContext(syslogConnectionHandlerDefaultContext) due Failed to create route receiveSyslogConnection: Route(receiveSyslogConnection)[[From[queuingservice:broadcas... because of Failed to resolve endpoint: queuingservice://broadcastSyslog due to: Cannot auto create component: queuingservice
      org.apache.camel.FailedToCreateRouteException: Failed to create route receiveSyslogConnection: Route(receiveSyslogConnection)[[From[queuingservice:broadcas... because of Failed to resolve endpoint: queuingservice://broadcastSyslog due to: Cannot auto create component: queuingservice
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:192)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:805)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2174)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1906)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1767)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1735)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:177)
        at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:209)
        at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:147)
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3431)[org.apache.felix.framework-4.4.1.jar:]
        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:97)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
        at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[14:org.apache.aries.blueprint.core:1.4.1]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
        at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:681)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:378)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:276)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:245)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:235)[14:org.apache.aries.blueprint.core:1.4.1]
        at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[9:org.apache.aries.util:1.1.0]
        at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[9:org.apache.aries.util:1.1.0]
        at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[9:org.apache.aries.util:1.1.0]
        at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[9:org.apache.aries.util:1.1.0]
        at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[9:org.apache.aries.util:1.1.0]
        at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)[org.apache.felix.framework-4.4.1.jar:]
        at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeatures(FeaturesServiceImpl.java:516)[7:org.apache.karaf.features.core:2.4.0]
        at org.apache.karaf.features.internal.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:402)[7:org.apache.karaf.features.core:2.4.0]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_91]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: queuingservice://broadcastSyslog due to: Cannot auto create component: queuingservice
        at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:547)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:72)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:202)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:89)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:923)[camel-core-2.14.1.jar:2.14.1]
        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:187)[camel-core-2.14.1.jar:2.14.1]
        ... 55 more
      Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: queuingservice
        at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:377)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:353)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:517)[209:org.apache.camel.camel-core:2.14.1]
        ... 63 more
      Caused by: java.lang.ClassCastException: org.apache.activemq.camel.component.ActiveMQComponent cannot be cast to org.apache.camel.CamelContextAware
        at Proxyd5e4a234_9039_4f9e_b223_73cde726b28f.setCamelContext(Unknown Source)
        at org.apache.camel.impl.DefaultCamelContext.addComponent(DefaultCamelContext.java:339)[209:org.apache.camel.camel-core:2.14.1]
        at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:368)[209:org.apache.camel.camel-core:2.14.1]
        ... 65 more
      

        Attachments

          Activity

            People

            • Assignee:
              cgorantla Chandra Gorantla
              Reporter:
              seth Seth Leger
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: