java.util.ServiceConfigurationError: javax.cache.spi.CachingProvider: Provider org.infinispan.jcache.embedded.JCachingProvider could not be instantiated


Samebug tips

you can change your scala version to 2.11.11


1 month ago

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.


9 months ago
Expert tip

Solutions on the web

Solution icon of github
javax.cache.spi.CachingProvider: Provider org.infinispan.jcache.embedded.JCachingProvider could not be instantiated

Solution icon of github
via GitHub by bobjacobsen
, 2 months ago
jmri.swing.PreferencesPanel: Provider jmri.web.server.FrameServletPreferencesPanel could not be instantiated

Solution icon of github
io.druid.initialization.DruidModule: Provider io.druid.storage.hdfs.HdfsStorageDruidModule could not be instantiated

Solution icon of github
com.diozero.internal.spi.NativeDeviceFactoryInterface: Provider com.diozero.internal.provider.sysfs.SysFsDeviceFactory could not be instantiated

Solution icon of github
via GitHub by tsdh
, 1 year ago
ttc.testsuite.interfaces.TestInterface: Provider ttc15_java_refactoring_funnyqt.TestInterfaceImpl could not be instantiated

Solution icon of github
javax.imageio.spi.ImageInputStreamSpi: Provider com.sun.media.imageioimpl.stream.ChannelImageInputStreamSpi could not be instantiated

Solution icon of github
via GitHub by ahsandar
, 1 year ago
javax.imageio.spi.ImageWriterSpi: Provider com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageWriterSpi could not be instantiated

Solution icon of github
org.apache.hadoop.fs.FileSystem: Provider tachyon.hadoop.TFS could not be instantiated

Solution icon of googlegroups
org.apache.hadoop.fs.FileSystem: Provider tachyon.hadoop.TFS could not be instantiated

Solution icon of hibernate
via Hibernate JIRA by Mikael Parkefelt, 1 year ago
org.hibernate.integrator.spi.Integrator: Provider org.hibernate.spatial.integration.SpatialIntegrator could not be instantiated

Stack trace

java.util.ServiceConfigurationError: javax.cache.spi.CachingProvider: Provider org.infinispan.jcache.embedded.JCachingProvider could not be instantiated
	at java.util.ServiceLoader.fail(ServiceLoader.java:232)
	at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
	at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
	at javax.cache.Caching$CachingProviderRegistry$1.run(Caching.java:438)
	at javax.cache.Caching$CachingProviderRegistry$1.run(Caching.java:432)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.cache.Caching$CachingProviderRegistry.getCachingProviders(Caching.java:432)
	at javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:370)
	at javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:351)
	at javax.cache.Caching.getCachingProvider(Caching.java:142)
	at org.apache.camel.component.file.strategy.CachedFileChangedExclusiveReadLockStrategy.prepareOnStartup(CachedFileChangedExclusiveReadLockStrategy.java:52)
	at org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.prepareOnStartup(GenericFileProcessStrategySupport.java:42)
	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:108)
	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175)
	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/infinispan/util/logging/LogFactory
	at org.infinispan.jcache.embedded.JCachingProvider.<clinit>(JCachingProvider.java:25)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
	... 21 more
Caused by: java.lang.ClassNotFoundException: org.infinispan.util.logging.LogFactory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 28 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 1 month ago
6 times, 2 months ago
Samebug visitor profile picture
Unknown user
2 times, 2 months ago
4 times, 2 months ago
3 times, 3 months ago
2476 more bugmates