Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Ehcache issue in java application which uses ehcache cache impelementation

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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'

 
I think I'll just lie down here for a second. And ponder this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!