Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10681

camel-ehcache - configUri does not work appropriately

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Bug
    • 2.18.1
    • 2.19.0
    • camel-ehcache
    • None
    • Unknown

    Description

      camel-ehcache component fail to initialize cache for the provided value of configUri.

      Different option to setup the configUri were attempted, but everytime it gives the error
      Caused by: java.lang.IllegalArgumentException: CacheConfiguration must be specified
      at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:308)
      at org.apache.camel.component.ehcache.EhcacheConfiguration.getMandatoryConfiguration(EhcacheConfiguration.java:243)
      at org.apache.camel.component.ehcache.EhcacheManager.getCache(EhcacheManager.java:72)
      at org.apache.camel.component.ehcache.EhcacheManager.getCache(EhcacheManager.java:88)

      As per documentation, the configuration option is "The default cache configuration to be used to create caches if configUri is not set".
      So if i am setting up configUri than the error for configuration should not come.

      The approaches attempted for configUri are documented in the camel user forum at the below link

      http://camel.465427.n5.nabble.com/Camel-EhCache-2-18-1-Exception-during-initialization-td5792164.html

      Attachments

        1. ehcache-config.xml
          0.8 kB
          Sumit Kumar

        Activity

          People

            lb Luca Burgazzoli
            urwithsumit@gmail.com Sumit Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: