[Logo]
Forums Register Login
Ehcache issue in java application which uses ehcache cache impelementation
Hi,

We are using IBM Integration Bus to develop integration flows using Java spring framework. Our framework implements ehcache for caching solutions.

We are facing below error when we deploy and run the application

java.lang.NoSuchMethodError: org/ehcache/jcache/JCacheManager.ge    
tEhCacheNativeCacheManager()Lnet/sf/ehcache/CacheManager;.                


Can you guys please help would could be issue here.

The pom file is as below

<!-- For Caching -->
<dependency>
<groupId>javax.cache</groupId>
<artifactId>cache-api</artifactId>
<version>1.0.0</version>
<exclusions>

</exclusions>
</dependency>
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>jcache</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.6.11</version>
</dependency>




The complete error stack is as below

+BIP2230E (Msg 2/4) MQJLMBRK ARCI511 147 ERROR DETECTED WHILST PROCESSI    
NG A MESSAGE IN NODE 'ARFAL_MobilePortProtection01.FailureHandler.Tran    
sform Failure'.                                                           
+BIP4367E (Msg 3/4) MQJLMBRK ARCI511 147 THE METHOD 'evaluate' IN JAVA     
NODE 'FailureHandler.Transform Failure' HAS THROWN THE FOLLOWING EXCEP    
TION: java.lang.NoSuchMethodError: org/ehcache/jcache/JCacheManager.ge    
tEhCacheNativeCacheManager()Lnet/sf/ehcache/CacheManager;.                
+BIP4395E (Msg 4/4) MQJLMBRK ARCI511 147 JAVA EXCEPTION: 'java.lang.NoS    
uchMethodError'; THROWN FROM CLASS NAME: 'com.anz.common.cache.impl.Lo    
calCacheHandler', METHOD NAME: 'getCacheManager', FILE: 'LocalCacheHan    
dler.java', LINE: '99'

Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 417 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jun 22, 2018 16:44:17.