java.util.ServiceConfigurationError

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


Samebug tips9

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 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.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web521

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
, 3 weeks ago
jmri.swing.PreferencesPanel: Provider jmri.web.server.FrameServletPreferencesPanel could not be instantiated

Solution icon of github
com.diozero.util.BoardInfoProvider: Provider com.diozero.internal.board.chip.CHIPBoardInfoProvider could not be instantiated

Solution icon of github
via GitHub by mincong-h
, 11 months ago
javax.batch.operations.JobOperator: Provider org.jberet.operations.JobOperatorImpl could not be instantiated

Solution icon of github
via GitHub by rbhunt
, 1 year ago
io.swagger.codegen.CodegenConfig: Provider io.swagger.codegen.languages.JaxRSServerCodegen could not be instantiated

Solution icon of github
via GitHub by namco1992
, 2 weeks ago
io.swagger.converter.ModelConverter: Provider io.swagger.scala.converter.SwaggerScalaModelConverter could not be instantiated

Solution icon of github
java.nio.file.spi.FileSystemProvider: Provider com.google.cloud.storage.contrib.nio.CloudStorageFileSystemProvider could not be instantiated

Solution icon of github
org.stagemonitor.core.instrument.StagemonitorJavassistInstrumenter: Provider org.stagemonitor.jdbc.ConnectionMonitoringInstrumenter could not be instantiated

Solution icon of googlegroups
via Google Groups by Jesse van Erkelens, 8 months ago
org.apache.hadoop.fs.FileSystem: Provider tachyon.hadoop.TFS could not be instantiated

Solution icon of googlegroups
via Google Groups by Tony Sandin, 1 month ago
n.t.core.reports.AcceptanceTestReporter: Provider n.t.core.reports.json.JSONTestOutcomeReporter 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

Samebug visitor profile picture
Unknown user
2 times, 1 week ago
4 times, 1 week ago
3 times, 4 weeks ago
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
2433 more bugmates