java.util.ServiceConfigurationError

tip

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.

tip

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.

tip

Check if you didn't forget to instantiate your topic in the kafka broker.

tip

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

tip

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

tip

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

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

  • GitHub comment 3625#126674820
    via GitHub by Dreampie
    ,
  • GitHub comment 11#249359045
    via GitHub by GreyTeardrop
    ,
  • GitHub comment 8#184990039
    via GitHub by barbeau
    ,
  • Java URLClassLoader ClassNotFoundException
    via by Unknown author,
    • 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

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown User
    1 times, last one,
    Andreas Häber
    1 times, last one,
    rp
    1 times, last one,
    poroszd
    5 times, last one,
    2331 more bugmates