Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Ehcache issue in java application which uses ehcache cache impelementation

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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'

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic