Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

UnsatisfiedLinkError in BrotliStreamCompressor #12

Open
mikolajpodbielski opened this issue Mar 23, 2017 · 2 comments
Open

UnsatisfiedLinkError in BrotliStreamCompressor #12

mikolajpodbielski opened this issue Mar 23, 2017 · 2 comments
Labels

Comments

@mikolajpodbielski
Copy link

When running this code

new BrotliStreamCompressor();

UnsatisfiedLinkError is thrown with following stack trace:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.meteogroup.jbrotli.BrotliStreamCompressor.initJavaFieldIdCache()I at org.meteogroup.jbrotli.BrotliStreamCompressor.initJavaFieldIdCache(Native Method) at org.meteogroup.jbrotli.BrotliStreamCompressor.<clinit>(BrotliStreamCompressor.java:28) at xxx.Main.main(Main.java:59)

Possible cause:
jbrotli-native/src/main/cpp/org_meteogroup_jbrotli_BrotliStreamCompressor.cxx line 45
native code is trying to get ID of field which does not exist.

@mikolajpodbielski
Copy link
Author

I forgot to mention that I'm using jbrotli 0.5.0 with jbrotli-native-win32-x86-amd64 on Windows 10 64bit

@nitram509
Copy link
Contributor

Hi,

when you run BrotliLibraryLoader.loadBrotli();
before instantiating a new instance of new BrotliStreamCompressor(); ?
Does this solve the issue?

Regards
Martin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants