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

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

     [ https://issues.apache.org/jira/browse/CAMEL-15589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15589.
---------------------------------
    Resolution: Information Provided

Camel 2.x is EOL and this is just a WARN and not an error.
Camel 3 does not do the update check, and is using a newer version where they dont do this anymore.

> 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
>            Priority: Minor
>         Attachments: camel-cache-test-master.zip
>
>
> 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.
> I have uploaded sample code to test.



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