Skip to content

Tag: jnr

How to handle a SIGSEGV with jffi / jnr?

The Java VM crash with a SIGSEGV in a docker container. On all other systems it is working as expected. and the stack trace What can I do to solve this problem with jffi / jnr? How can I receive more details about the problem? Answer The cause of the crash on Linux was a inkompatible native libraries for the

Could not load FFI provider when using

my Linux Java application uses bluetooth devices. I use this library in order to communicate with bluez stack : It worked very well until I added to my client code. Suddenly I got this error: Exception in thread “main” java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider at jnr.ffi@2.1.15/jnr.ffi.provider.InvalidRuntime.newLoadError( at jnr.ffi@2.1.15/jnr.ffi.provider.InvalidRuntime.findType( at jnr.ffi@2.1.15/jnr.ffi.Struct$NumberField.( at jnr.ffi@2.1.15/jnr.ffi.Struct$Unsigned16.( at jnr.unixsocket@0.33/jnr.unixsocket.SockAddrUnix$DefaultSockAddrUnix.( at jnr.unixsocket@0.33/jnr.unixsocket.SockAddrUnix.create(