ResolveEndpointFailedException when trying to use the Camel Cache endpoint

Solution In Progress - Updated -

Issue

  • ResolveEndpointFailedException thrown when trying to use the Camel Cache endpoint with Spring Cache
  • When trying to configure the Camel Cache endpoint with a different CacheManagerFactory, Fuse throws ResolveEndpointFailedException
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cache://CachedData?cacheManagerFactory=%23myCacheManagerFactory due to: Could not find a suitable setter for property: cacheManagerFactory as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.apache.camel.component.cache.CacheManagerFactory with value #myCacheManagerFactory
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:578)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.util.CamelContextHelper.getEndpointInjection(CamelContextHelper.java:174)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.CamelPostProcessorHelper.doGetEndpointInjection(CamelPostProcessorHelper.java:151)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.CamelPostProcessorHelper.getEndpointInjection(CamelPostProcessorHelper.java:146)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.CamelPostProcessorHelper.createInjectionProducerTemplate(CamelPostProcessorHelper.java:283)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.CamelPostProcessorHelper.getInjectionValue(CamelPostProcessorHelper.java:199)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.DefaultCamelBeanPostProcessor.injectField(DefaultCamelBeanPostProcessor.java:195)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.DefaultCamelBeanPostProcessor$1.doWith(DefaultCamelBeanPostProcessor.java:182)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.util.ReflectionHelper.doWithFields(ReflectionHelper.java:73)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.DefaultCamelBeanPostProcessor.injectFields(DefaultCamelBeanPostProcessor.java:168)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.impl.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:82)[198:org.apache.camel.camel-core:2.15.1.redhat-620133]
    at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:148)[203:org.apache.camel.camel-spring:2.15.1.redhat-620133]
    ... 16 more

Environment

  • Red Hat JBoss Fuse
    • 6.x

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.