1 Reply Latest reply on Mar 7, 2012 12:19 PM by YYY SSS

    ERROR org.apache.camel.ResolveEndpointFailedException Please help? (cache)

    YYY SSS Newbie

      Hi

       

      I am getting an error when I try to deploy a jar. It is saying active, but failed. Please help me figure this out.

      Fuse 4.4.1-02-05

      Maven 3.0.4

       

       

      I dropped a jar into deploy folder. When I start karaf console I see

      MyToolName :: Controller (1.0.0.SNAPSHOT)

       

       

      When I do a log:tail I get this error trace:

       

       

      11:01:36,867 | ERROR | ExtenderThread-4 | ContextLoaderListener            | ?                                   ? | 84 - org.springframework.osgi.ext

      ender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=backup-inbound-consumer, config=osgibundle:/META-INF/spring

      /*.xml))

      org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route70: Route[[From[cache://cmdbCache?m

      axElementsInMemory=20000&memo... because of Failed to resolve endpoint: cache://cmdbCache?maxElementsInMemory=20000&memoryStoreEvictionPolicy=MemorySt

      oreEvictionPolicy.LFU&timeToIdleSeconds=604800&timeToLiveSeconds=0 due to: No component found with scheme: cache

              at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1149)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:110)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-0

      5]

              at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)[91:org.apache.camel.camel-spring:2.8.0

      .fuse-02-05]

              at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[75:org.spring

      framework.context:3.0.5.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[75:org.springframework.con

      text:3.0.5.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[75:org.springframework.co

      ntext:3.0.5.RELEASE]

              at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[

      81:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.ja

      va:358)[81:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[81:org.springframework.osgi.core:1.2.

      1]

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplication

      Context.java:320)[81:org.springframework.osgi.core:1.2.1]

              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependen

      cyWaiterApplicationContextExecutor.java:132)[84:org.springframework.osgi.extender:1.2.1]

              at java.lang.Thread.run(Thread.java:619)[:1.6.0]

      Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route70: Route[[From[cache://cmdbCache?maxElementsInMemory=20000&memo

      ... because of Failed to resolve endpoint: cache://cmdbCache?maxElementsInMemory=20000&memoryStoreEvictionPolicy=MemoryStoreEvictionPolicy.LFU&timeToI

      dleSeconds=604800&timeToLiveSeconds=0 due to: No component found with scheme: cache

              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:170)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:698)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1679)[89:org.apache.camel.camel-core:2.8.0.fuse-02

      -05]

              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1464)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1356)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:169)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]

              at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1324)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:213)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]

              at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-0

      5]

              ... 10 more

      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cache://cmdbCache?maxElementsInMemory=20000&memoryStoreEvictio

      nPolicy=MemoryStoreEvictionPolicy.LFU&timeToIdleSeconds=604800&timeToLiveSeconds=0 due to: No component found with scheme: cache

              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:450)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:48)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:180)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:798)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]

              ... 20 more

       

       

       

      I have camel-cache bundle intalled and active:

      [Active][   ][   ][50] camel-cache (2.8.0.fuse-02-05)

       

       

      Here is the trace from osgi:headers 258

       

      karaf@root> osgi:headers 258

       

      Backup Reporting Tool :: Controller (258)

      -


      Manifest-Version = 1.0

      Bnd-LastModified = 1331135441910

      Tool = Bnd-1.15.0

      Built-By = jramprasad

      Build-Jdk = 1.6.0

      Created-By = Apache Maven Bundle Plugin

       

      Bundle-Name = Backup Reporting Tool :: Controller

      Bundle-SymbolicName = backup-inbound-consumer

      Bundle-Version = 1.0.0.SNAPSHOT

      Bundle-ManifestVersion = 2

       

      Export-Service =

              com.lti.brt.bundle.service.ControllerFacade

       

      Import-Package =

              com.lti.brt.agent.commons.configuration,

              com.lti.brt.agent.commons.entities,

              com.lti.brt.agent.commons.entities.netbackup,

              com.lti.brt.agent.commons.entities.record,

              com.lti.brt.agent.commons.entities.tickle,

              com.mongodb;version="[2.3,3)",

              javax.annotation,

              javax.jws;version="[2.0,3)",

              javax.management,

              javax.net,

              javax.net.ssl,

              javax.sql,

              javax.wsdl,

              javax.xml.namespace,

              net.sf.cglib.asm,

              net.sf.cglib.beans,

              net.sf.cglib.core,

              net.sf.cglib.proxy,

              net.sf.cglib.reflect,

              net.sf.cglib.transform,

              net.sf.cglib.util,

              org.apache.activemq;version="[5.5,6)",

              org.apache.activemq.broker;version="[5.5,6)",

              org.apache.activemq.xbean;version="[5.5,6)",

              org.apache.camel;version="[2.8,3)",

              org.apache.camel.builder;version="[2.8,3)",

              org.apache.camel.component.jms;version="[2.8,3)",

              org.apache.camel.component.mybatis;version="[2.8,3)",

              org.apache.camel.component.stream;version="[2.8,3)",

              org.apache.camel.impl;version="[2.8,3)",

              org.apache.camel.model;version="[2.8,3)",

              org.apache.camel.model.dataformat;version="[2.8,3)",

              org.apache.camel.processor.aggregate;version="[2.8,3)",

              org.apache.commons.collections.comparators;version="[3.2,4)",

              org.apache.commons.dbcp,

              org.apache.ibatis.io;version="[3.0,4)",

              org.apache.ibatis.mapping;version="[3.0,4)",

              org.apache.ibatis.session;version="[3.0,4)",

              org.apache.servicemix.util,

              org.apache.xbean.spring;version="[3.4,4)",

              org.bson.types;version="[2.3,3)",

              org.codehaus.jackson;version="[1.6,2)",

              org.codehaus.jackson.map;version="[1.6,2)",

              org.codehaus.jackson.type;version="[1.6,2)",

              org.jasypt.encryption.pbe,

              org.jasypt.encryption.pbe.config,

              org.jasypt.exceptions,

              org.jasypt.util.text,

              org.joda.time;version="[2.0,3)",

              org.joda.time.format;version="[2.0,3)",

              org.osgi.framework;version="[1.4,2)",

              org.osgi.service.blueprint;version="[1.0.0,2.0.0)",

              org.quartz,

              org.quartz.impl,

              org.slf4j;version="[1.5,2)",

              org.springframework.beans;version="[3.0,4)",

              org.springframework.beans.factory.annotation;version="[3.0,4)",

              org.springframework.beans.factory.config;version="[3.0,4)",

              org.springframework.context;version="[3.0,4)",

              org.springframework.context.annotation;version="[3.0,4)",

              org.springframework.core.convert;version="[3.0,4)",

              org.springframework.core.convert.converter;version="[3.0,4)",

              org.springframework.stereotype;version="[3.0,4)"

      Export-Package =

              com.lti.brt.bundle.cache;uses:="com.lti.brt.agent.commons.entities,com.lti.brt.agent.commons.configuration,org.springframework.stereotype",

              com.lti.brt.bundle.configuration.agent;uses:=com.lti.brt.agent.commons.configuration,

              com.lti.brt.bundle.configuration.controller;

                      uses:="javax.annotation,

                              org.springframework.context.annotation,

                              org.slf4j,

                              org.springframework.beans.factory.annotation,

                              org.apache.camel.component.mybatis,

                              com.lti.brt.agent.commons.entities,

                              org.apache.ibatis.session,

                              org.apache.ibatis.io,

                              org.springframework.stereotype",

              com.lti.brt.bundle.dao;uses:="com.lti.brt.agent.commons.entities,com.lti.brt.agent.commons.entities.record",

              com.lti.brt.bundle.dao.log;

                      uses:="com.lti.brt.agent.commons.entities,

                              com.lti.brt.bundle.dao,

                              com.lti.brt.bundle.parse.netbackup,

                              org.springframework.stereotype,

                              org.slf4j",

              com.lti.brt.bundle.dao.mongo;

                      uses:="org.joda.time,

                              com.mongodb,

                              com.lti.brt.agent.commons.entities,

                              org.springframework.stereotype,

                              org.slf4j,

                              org.springframework.core.convert.converter,

                              org.bson.types,

                              org.springframework.core.convert,

                              com.lti.brt.agent.commons.entities.record,

                              com.lti.brt.bundle.dao,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.bundle.configuration.controller,

                              org.jasypt.util.text,

                              org.jasypt.exceptions",

              com.lti.brt.bundle.parse.avamar;

                      uses:="com.lti.brt.agent.commons.entities.tickle,

                              com.lti.brt.agent.commons.entities,

                              com.lti.brt.agent.commons.entities.record,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.bundle.parse,

                              org.springframework.stereotype,

                              org.slf4j",

              com.lti.brt.bundle.parse.backupexec;

                      uses:="com.lti.brt.agent.commons.entities.tickle,

                              com.lti.brt.agent.commons.entities,

                              com.lti.brt.agent.commons.entities.record,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.bundle.parse,

                              org.springframework.stereotype,

                              org.slf4j",

              com.lti.brt.bundle.parse.cmdb;uses:=com.lti.brt.agent.commons.entities.record,

              com.lti.brt.bundle.parse.commvault;

                      uses:="com.lti.brt.agent.commons.entities.tickle,

                              com.lti.brt.agent.commons.entities,

                              com.lti.brt.agent.commons.entities.record,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.bundle.parse,

                              org.springframework.stereotype,

                              org.slf4j",

              com.lti.brt.bundle.parse;uses:="com.lti.brt.agent.commons.entities,com.lti.brt.agent.commons.entities.record",

              com.lti.brt.bundle.parse.netbackup.csvconversion;

                      uses:="com.lti.brt.agent.commons.entities.record,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.bundle.cache,

                              org.slf4j,

                              com.lti.brt.agent.commons.entities,

                              org.codehaus.jackson.map,

                              org.codehaus.jackson,

                              com.lti.brt.agent.commons.configuration,

                              org.springframework.stereotype",

              com.lti.brt.bundle.parse.netbackup.executionconversion;

                      uses:="com.lti.brt.agent.commons.entities.netbackup,

                              com.lti.brt.agent.commons.entities,

                              com.lti.brt.agent.commons.entities.record,

                              org.joda.time,

                              com.lti.brt.agent.commons.configuration,

                              org.springframework.stereotype",

              com.lti.brt.bundle.parse.netbackup;

                      uses:="com.lti.brt.agent.commons.entities,

                              com.lti.brt.agent.commons.entities.record,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.bundle.parse,

                              org.springframework.stereotype,

                              com.lti.brt.bundle.parse.netbackup.executionconversion,

                              org.slf4j,

                              com.lti.brt.bundle.parse.netbackup.csvconversion",

              com.lti.brt.bundle.route.configuration;uses:="org.apache.camel.builder,org.apache.camel.model,org.springframework.stereotype",

              com.lti.brt.bundle.route.response;

                      uses:="org.apache.camel,

                              org.springframework.stereotype,

                              org.slf4j,

                              org.apache.camel.builder,

                              com.lti.brt.agent.commons.entities.tickle,

                              org.apache.camel.model,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.agent.commons.configuration",

              com.lti.brt.bundle.route.tickle;

                      uses:="org.apache.camel.builder,

                              org.apache.camel.model,

                              com.lti.brt.agent.commons.entities,

                              org.springframework.beans.factory.annotation,

                              com.lti.brt.bundle.cache,

                              com.lti.brt.agent.commons.configuration,

                              org.springframework.stereotype,

                              org.slf4j,

                              com.lti.brt.agent.commons.entities.tickle,

                              org.joda.time,

                              org.apache.camel",

              com.lti.brt.bundle.route.util;

                      uses:="com.lti.brt.agent.commons.entities,

                              org.apache.camel,

                              com.lti.brt.agent.commons.entities.record,

                              org.slf4j,

                              org.apache.camel.processor.aggregate,

                              org.apache.camel.builder,

                              org.apache.camel.model,

                              org.springframework.stereotype",

              com.lti.brt.bundle.service;uses:=com.lti.brt.agent.commons.entities,

              com.lti.brt.bundle.util;

                      uses:="org.springframework.beans,

                              org.springframework.context,

                              org.apache.camel,

                              org.springframework.beans.factory.annotation"

      Require-Bundle =

              org.apache.cxf.bundle

       

      Edited by: yss on Mar 7, 2012 5:11 PM

       

       

       

       

      Well, I am obviously too new to this for my own good! I Just did a clean re-start and it's fine. I guess adding the camel-cache bundle did the trick.

       

      Edited by: yss on Mar 7, 2012 5:17 PM