Skip to content

I am getting this error. Please help me fix it #1

@dinakaranram9

Description

@dinakaranram9

An attempt was made to call a method that does not exist. The attempt was made from the following location:

io.micrometer.core.instrument.binder.cache.EhCache2Metrics.<init>(EhCache2Metrics.java:37)

The following method did not exist:

'net.sf.ehcache.statistics.StatisticsGateway net.sf.ehcache.Ehcache.getStatistics()'

The method's class, net.sf.ehcache.Ehcache, is available from the following locations:

jar:file:/C:/Users/dramadurai/.m2/repository/net/sf/ehcache/ehcache-core/2.6.2/ehcache-core-2.6.2.jar!/net/sf/ehcache/Ehcache.class

It was loaded from the following location:

file:/C:/Users/dramadurai/.m2/repository/net/sf/ehcache/ehcache-core/2.6.2/ehcache-core-2.6.2.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of net.sf.ehcache.Ehcache

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions