You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the cache for the first time. But unfortunately I get the following message on the server
15:13:11,642 ERROR [ch.coop.workflow.component.hrservices.cache.AbstractWorkforceIdKeyCache] (default task-30) Error: java.lang.LinkageError: Cannot resolve cache2k core implementation
at org.cache2k.CacheManager.<clinit>(CacheManager.java:64)
at org.cache2k.Cache2kBuilder.cfg(Cache2kBuilder.java:186)
at org.cache2k.Cache2kBuilder.name(Cache2kBuilder.java:342)
at ch.coop.workflow.component.hrservices.cache.AbstractWorkforceIdKeyCache.initCache(AbstractWorkforceIdKeyCache.java:29)
at ch.coop.workflow.component.hrservices.cache.AbstractWorkforceIdKeyCache.getCache(AbstractWorkforceIdKeyCache.java:22)
at ch.coop.workflow.component.hrservices.cache.MaOrgDatCache.getDocument(MaOrgDatCache.java:24)
at ch.coop.workflow.component.hrservices.HRServicesService.zHRGetMitarbeiterOrgDat(HRServicesService.java:173)
cache2k is optimized for high performance. I consider a try { cache.get(xy); } catch (Exception e) .... as an anti pattern, because the try/catch needs (very little) extra cycles on every cache access. If you want to wrap exceptions on interface boundaries, do it within the CacheLoader. cache2k will wrap exceptions from the loader in turn into CacheLoaderException, however, you can change that with a different ExceptionPropagator. Anyhow, hope you get it working at all, first!
Error
I am trying to use the cache for the first time. But unfortunately I get the following message on the server
Setting
pom.xml
implementation
I do not get any error in Eclipse during execution of the test cases.
Do I need to implement/use the cache differently?
The text was updated successfully, but these errors were encountered: