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, 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