You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sreejesh (Jira)" <ji...@apache.org> on 2020/09/29 05:39:00 UTC

[jira] [Created] (CAMEL-15589) EhCache Exception on startup when using Apache Camel

Sreejesh created CAMEL-15589:
--------------------------------

             Summary: EhCache Exception on startup when using Apache Camel
                 Key: CAMEL-15589
                 URL: https://issues.apache.org/jira/browse/CAMEL-15589
             Project: Camel
          Issue Type: Bug
          Components: camel-cache
    Affects Versions: 2.24.3
            Reporter: Sreejesh


I was trying to use EhCache with Apache Camel using Sprin Boot. While it works as expected. there is an exception on startup. It does not cause any issues in the functionality I guess (according to my test, everything works as expected). But is there any way to avoid that exception?

{{}}

 

{{{{2020-09-28 23:46:38,397 [main][DEBUG] org.apache.camel.component.cache.CacheManagerFactory - Turning off EHCache update checker ...
2020-09-28 23:46:38,400 [main][WARN ] org.apache.camel.component.cache.CacheManagerFactory - Error turning off EHCache update checker. Beware information sent over the internet!
java.lang.NoSuchFieldException: updateCheck
    at java.base/java.lang.Class.getDeclaredField(Class.java:2411)
    at org.apache.camel.component.cache.CacheManagerFactory.getInstance(CacheManagerFactory.java:40)
    at org.apache.camel.component.cache.CacheEndpoint.initializeCache(CacheEndpoint.java:120)
    at org.apache.camel.component.cache.CacheProducer.doStart(CacheProducer.java:45)
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72}}}}

 

My EhCache Configuration XML:

 

 

{{<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="false"
         monitoring="autodetect" dynamicConfig="true">

    
    <cache name="cache1"
           maxEntriesLocalHeap="10000"
           maxEntriesLocalDisk="1000"
           eternal="false"
           diskSpoolBufferSizeMB="20"
           timeToIdleSeconds="300" timeToLiveSeconds="600"
           memoryStoreEvictionPolicy="LFU"
           transactionalMode="off">
        <persistence strategy="localTempSwap" />
    </cache>

</ehcache> }}

{{}}

{{}}

I have tried to set the updateCheck as false, no luck. I even tried to remove the updateCheck field itself from the XML, even that did not help (though it started fine with the same exception).

Thanks for your time.

{{}}

{{{{)
    at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)}}}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)