java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/libjffi-1.2.so

GitHub | bcopy | 12 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Does not work on ARM platforms (e.g. Hypriot Docker on Raspberry Pi)

    GitHub | 12 months ago | bcopy
    java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/libjffi-1.2.so
  2. 0

    docker-client does not work on ARM (e.g. Raspberry Pi)

    GitHub | 10 months ago | bcopy
    java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/libjffi-1.2.so
  3. 0

    GitHub comment 2950#104045687

    GitHub | 2 years ago | richrarobi
    java.lang.UnsatisfiedLinkError: /opt/jruby/lib/jni/arm-Linux/libjffi-1.2.so: /opt/jruby/lib/jni/arm-Linux/libjffi-1.2.so: cannot open shared object file: No such file or directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 5#219114706

    GitHub | 1 year ago | guy38370
    java.lang.UnsatisfiedLinkError: /var/lib/logstash/jffi3051690098859420415.so: /var/lib/logstash/jffi3051690098859420415.so: cannot open shared object file: No such file or directory
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    Can't load library: /usr/lib/libjffi-1.2.so

    at java.lang.ClassLoader.loadLibrary()
  2. Java RT
    System.load
    1. java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
    2. java.lang.Runtime.load0(Runtime.java:809)
    3. java.lang.System.load(System.java:1086)
    3 frames
  3. JRuby Main Maven Artifact
    StubLoader.<clinit>
    1. com.kenai.jffi.internal.StubLoader.loadFromBootPath(StubLoader.java:316)
    2. com.kenai.jffi.internal.StubLoader.load(StubLoader.java:249)
    3. com.kenai.jffi.internal.StubLoader.<clinit>(StubLoader.java:434)
    3 frames
  4. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:348)
    2 frames
  5. JRuby Main Maven Artifact
    Provider.<init>
    1. com.kenai.jffi.Init.load(Init.java:68)
    2. com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
    3. com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
    4. com.kenai.jffi.Foreign.getInstance(Foreign.java:103)
    5. com.kenai.jffi.Type$Builtin.lookupTypeInfo(Type.java:242)
    6. com.kenai.jffi.Type$Builtin.getTypeInfo(Type.java:237)
    7. com.kenai.jffi.Type.resolveSize(Type.java:155)
    8. com.kenai.jffi.Type.size(Type.java:138)
    9. jnr.ffi.provider.jffi.NativeRuntime$TypeDelegate.size(NativeRuntime.java:178)
    10. jnr.ffi.provider.AbstractRuntime.<init>(AbstractRuntime.java:48)
    11. jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:57)
    12. jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:41)
    13. jnr.ffi.provider.jffi.NativeRuntime$SingletonHolder.<clinit>(NativeRuntime.java:53)
    14. jnr.ffi.provider.jffi.NativeRuntime.getInstance(NativeRuntime.java:49)
    15. jnr.ffi.provider.jffi.Provider.<init>(Provider.java:29)
    15 frames
  6. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    5. java.lang.Class.newInstance(Class.java:442)
    5 frames
  7. JRuby Main Maven Artifact
    UnixSocketChannel.open
    1. jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.getInstance(FFIProvider.java:68)
    2. jnr.ffi.provider.FFIProvider$SystemProviderSingletonHolder.<clinit>(FFIProvider.java:57)
    3. jnr.ffi.provider.FFIProvider.getSystemProvider(FFIProvider.java:35)
    4. jnr.ffi.LibraryLoader.create(LibraryLoader.java:70)
    5. jnr.unixsocket.Native.<clinit>(Native.java:72)
    6. jnr.unixsocket.UnixSocketChannel.<init>(UnixSocketChannel.java:68)
    7. jnr.unixsocket.UnixSocketChannel.open(UnixSocketChannel.java:49)
    7 frames
  8. com.spotify.docker
    UnixConnectionSocketFactory.createSocket
    1. com.spotify.docker.client.ApacheUnixSocket.<init>(ApacheUnixSocket.java:56)
    2. com.spotify.docker.client.UnixConnectionSocketFactory.createSocket(UnixConnectionSocketFactory.java:63)
    2 frames
  9. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:118)
    2. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    3. org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    4. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    5. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    6. org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    7. org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    8. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    9 frames
  10. jersey-connectors-apache
    ApacheConnector$1.run
    1. org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:435)
    2. org.glassfish.jersey.apache.connector.ApacheConnector$1.run(ApacheConnector.java:491)
    2 frames
  11. Java RT
    FutureTask.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2 frames
  12. jersey-repackaged-guava
    MoreExecutors$DirectExecutorService.execute
    1. jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)
    1 frame
  13. Java RT
    AbstractExecutorService.submit
    1. java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
    1 frame
  14. jersey-repackaged-guava
    AbstractListeningExecutorService.submit
    1. jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:50)
    2. jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:37)
    2 frames
  15. jersey-connectors-apache
    ApacheConnector.apply
    1. org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:487)
    1 frame
  16. jersey-core-client
    ClientRuntime$2.run
    1. org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:177)
    1 frame
  17. Jersey Core
    RequestScope.runInScope
    1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
    2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
    3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
    6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
    6 frames
  18. jersey-core-client
    ClientRuntime$3.run
    1. org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:209)
    1 frame
  19. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames