java.lang.UnsatisfiedLinkError

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 4291#272339511
    via GitHub by cheister
    ,
  • Can't compile widgetset
    via GitHub by dolbysurnd
    ,
  • Problems with jndi lookup
    via GitHub by mlb1141
    ,
  • Vineet Manohar's blog
    via by Unknown author,
  • GitHub comment 5047#204612587
    via GitHub by Pedramrn
    ,
  • Very frustrated with jboss 6 and seam.
    via by Bob Green,
    • java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider at jnr.ffi.provider.InvalidProvider$1.loadLibrary(InvalidProvider.java:48) at jnr.ffi.LibraryLoader.load(LibraryLoader.java:325) at jnr.ffi.Library.loadLibrary(Library.java:127) at jnr.posix.POSIXFactory$DefaultLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:279) at jnr.posix.POSIXFactory$DefaultLibCProvider.getLibC(POSIXFactory.java:283) at jnr.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:37) at jnr.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:18) at jnr.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:143) at jnr.posix.POSIXFactory.loadNativePOSIX(POSIXFactory.java:121) at jnr.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:90) at jnr.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:36) at jnr.posix.LazyPOSIX.posix(LazyPOSIX.java:32) at jnr.posix.LazyPOSIX.isNative(LazyPOSIX.java:378) at org.jruby.RubyGlobal.prepareStdioChannel(RubyGlobal.java:295) at org.jruby.RubyGlobal.initSTDIO(RubyGlobal.java:272) at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:199) at org.jruby.Ruby.init(Ruby.java:1190) at org.jruby.Ruby.newInstance(Ruby.java:334) at org.jruby.Main.internalRun(Main.java:271) at org.jruby.Main.run(Main.java:232) at org.jruby.Main.main(Main.java:204) Caused by: java.lang.NoClassDefFoundError: com/kenai/jffi/Type at jnr.ffi.provider.jffi.NativeRuntime.jafflType(NativeRuntime.java:193) at jnr.ffi.provider.jffi.NativeRuntime.buildTypeMap(NativeRuntime.java:76) at jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:57) at jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:41) at jnr.ffi.provider.jffi.NativeRuntime$SingletonHolder.<clinit>(NativeRuntime.java:53) at jnr.ffi.provider.jffi.NativeRuntime.getInstance(NativeRuntime.java:49) at jnr.ffi.provider.jffi.Provider.<init>(Provider.java:29) 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 jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.getInstance(FFIProvider.java:68) at jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.<clinit>(FFIProvider.java:57) at jnr.ffi.provider.FFIProvider.getSystemProvider(FFIProvider.java:35) at jnr.ffi.Library.loadLibrary(Library.java:114) ... 18 more Caused by: java.lang.ClassNotFoundException: com.kenai.jffi.Type at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 34 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    tvrmsmith
    2 times, last one,
    junior_cEngineer
    1 times, last one,
    Matty
    1 times, last one,
    2331 more bugmates