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
If one uses the API outlined in https://www.ehcache.org/documentation/3.9/getting-started.html via CacheManagerBuilder.newCacheManagerBuilder() .build() too early in OSGi runtimes (i.e. when the services of type org.ehcache.core.spi.service.ServiceFactory have not yet been registered) it fails with
ServiceLocator$DependencyException: Failed to find provider with satisfied dependency set for interface org.ehcache.core.events.CacheEventListenerProvider [candidates []]
at org.ehcache.core.spi.ServiceLocator$DependencySet.build(ServiceLocator.java:350)
at org.ehcache.core.EhcacheManager.resolveServices(EhcacheManager.java:154)
at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:125)
at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:115)
at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:111)
at com.novonordisk.hcp.integrations.shade.ehcache.config.builders.CacheManagerBuilder.newCacheManager
The above happens with Ehcache 3.9.9 (for other versions the line numbers may differ)
In order to programmatically prevent this race condition, please provide a OSGi condition which is only satisfied once all necessary ServiceFactory service are registered.
The text was updated successfully, but these errors were encountered:
are registered
This allows to defer starting of custom OSGi DS component which rely on
the EhcacheManager in their activate() method until the Ehcache services
are registered
This closesehcache#3232
kwin
linked a pull request
Jun 21, 2024
that will
close
this issue
are registered
This allows to defer starting of custom OSGi DS component which rely on
the EhcacheManager in their activate() method until the Ehcache services
are registered
This closesehcache#3232
kwin
added a commit
to kwin/ehcache3
that referenced
this issue
Jun 23, 2024
are registered
This allows to defer starting of custom OSGi DS component which rely on
the EhcacheManager in their activate() method until the Ehcache services
are registered
This closesehcache#3232
If one uses the API outlined in https://www.ehcache.org/documentation/3.9/getting-started.html via
CacheManagerBuilder.newCacheManagerBuilder() .build()
too early in OSGi runtimes (i.e. when the services of typeorg.ehcache.core.spi.service.ServiceFactory
have not yet been registered) it fails withThe above happens with Ehcache 3.9.9 (for other versions the line numbers may differ)
In order to programmatically prevent this race condition, please provide a OSGi condition which is only satisfied once all necessary ServiceFactory service are registered.
The text was updated successfully, but these errors were encountered: