Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5937

Missing CachingProvider in camel-jcache component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • Camel
    • None
    • % %
    • Hide

      Install and start attached reproducer.

      Show
      Install and start attached reproducer.
    • Sprint 7 - towards CR2

      When I start bundle witch is using jcache component I get following exception:

      Exception in thread "SpringOsgiExtenderThread-4" org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[jcache://test-cache]. Reason: javax.cache.CacheException: No CachingProviders have been configured
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:444)
      	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:160)
      	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:243)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1372)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      
      ...
      
      Caused by: javax.cache.CacheException: No CachingProviders have been configured
      	at javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:381)
      	at javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:351)
      	at javax.cache.Caching.getCachingProvider(Caching.java:142)
      	at org.apache.camel.component.jcache.JCacheManager.getCache(JCacheManager.java:88)
      	at org.apache.camel.component.jcache.JCacheProducer.getCache(JCacheProducer.java:75)
      	at org.apache.camel.component.jcache.JCacheProducer.doStart(JCacheProducer.java:65)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1243)
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1204)
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:442)
      	... 62 more
      

      It looks like missing dependency in camel-jcache feature. In this feature there are only this two dependencies and neither first nor second contains CachingProvider implementation.

      1 mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax-cache-api/1.0.0_1
      2 mvn:org.apache.camel/camel-jcache/2.17.0.redhat-630123

            acosenti Andrea Cosentino
            jbouska@redhat.com Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: