-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy v.1.1.9.1 #417
Comments
I am also seeing this issue on
Our Docker containers run Ubuntu |
Probably related to #405. dockcross compilers used for building snappy-java native libraries might be using too new glibc version |
Is there any possibility version |
I ran into the same issue, and was able to re-build the library on a Graviton host running an older OS. Our target environment uses a multi-arch image to run the same configuration on multiple platforms. I'm surprised that only the Graviton instance had an issue. |
I've tested upgrades to snappy 1.10.0, but it seems there is almost no binary change except for some specific platform https://github.com/xerial/snappy-java/pull/431/files Some Arm environment issue reported here might have a different cause. |
The solution for this problem looks like using Linux OS with glibc 2.32 or later: glibc 2.32 was released 3 years ago (2020) https://sourceware.org/glibc/wiki/Release/2.32, so generally speaking I'd recommend upgrading the OS version. For supporting such an older version of glibc, we need to use an older version of the cross compiler (dockcross image) or prepare custom cross-compiler images, but it would be overkill for this project. Building your own version of snappy-java with |
Stumbled upon this when running our app on Arm machine. We are using latest stable debian image from dockerhub debian:11-slim. libc version on it is 2.31, I understand that it is years old now, but lots of linux distros are moving very slow, and compiling with latest may break lots of users apps. I'd kindly ask to reconsider and if possible to compile with older versions. https://github.com/xerial/snappy-java/pull/435/files this hopefully will fix it. |
Rebuild Linux aach64 native lib using an LTS version of cross-compiler with glibc 2.28 #436. I'll prepare a snapshot version for testing purpose. |
Published a new snapshot version. I hope this will fix the issue https://oss.sonatype.org/content/repositories/snapshots/org/xerial/snappy/snappy-java/1.1.9.1-26-41813272-SNAPSHOT/ I'll release snappy-java 1.1.10.0 if this works |
Released https://github.com/xerial/snappy-java/releases/tag/v1.1.10.0 I'll close this ticket now. If you encounter a similar issue, could you file another ticket to have a fresh start? Thanks |
### What changes were proposed in this pull request? This PR upgrades `snappy-java` version to 1.1.10.0 from 1.1.9.1. ### Why are the changes needed? The new `snappy-java` version fixes a potential issue for Graviton support when used with old GLIBC versions. See xerial/snappy-java#417. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests. Closes #41285 from sunchao/snappy-java. Authored-by: Chao Sun <sunchao@apple.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This PR upgrades `snappy-java` version to 1.1.10.0 from 1.1.9.1. The new `snappy-java` version fixes a potential issue for Graviton support when used with old GLIBC versions. See xerial/snappy-java#417. No Existing tests. Closes #41285 from sunchao/snappy-java. Authored-by: Chao Sun <sunchao@apple.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 1e17c86) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Thank you @xerial for the quick turnaround. Appreciate it! |
@StefanBratanov Kudos to @NersesAM. He provided a maintainable solution #417 (comment) |
Snappy v1.1.9.1 has some issues around arm compatibility and glibc library versions shipped by default with certain OS distributions. Snappy v1.1.10.0 uses a glibc LTS version, see: xerial/snappy-java#417 xerial/snappy-java#440 Reviewers: Justine Olshan <jolshan@confluent.io>
Snappy v1.1.9.1 has some issues around arm compatibility and glibc library versions shipped by default with certain OS distributions. Snappy v1.1.10.0 uses a glibc LTS version, see: xerial/snappy-java#417 xerial/snappy-java#440 Reviewers: Justine Olshan <jolshan@confluent.io>
### What changes were proposed in this pull request? This PR upgrades `snappy-java` version to 1.1.10.0 from 1.1.9.1. ### Why are the changes needed? The new `snappy-java` version fixes a potential issue for Graviton support when used with old GLIBC versions. See xerial/snappy-java#417. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests. Closes apache#41285 from sunchao/snappy-java. Authored-by: Chao Sun <sunchao@apple.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This PR upgrades `snappy-java` version to 1.1.10.0 from 1.1.9.1. The new `snappy-java` version fixes a potential issue for Graviton support when used with old GLIBC versions. See xerial/snappy-java#417. No Existing tests. Closes apache#41285 from sunchao/snappy-java. Authored-by: Chao Sun <sunchao@apple.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 1e17c86) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This PR upgrades `snappy-java` version to 1.1.10.0 from 1.1.9.1. The new `snappy-java` version fixes a potential issue for Graviton support when used with old GLIBC versions. See xerial/snappy-java#417. No Existing tests. Closes apache#41285 from sunchao/snappy-java. Authored-by: Chao Sun <sunchao@apple.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 1e17c86) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This PR upgrades `snappy-java` version to 1.1.10.0 from 1.1.9.1. The new `snappy-java` version fixes a potential issue for Graviton support when used with old GLIBC versions. See xerial/snappy-java#417. No Existing tests. Closes apache#41285 from sunchao/snappy-java. Authored-by: Chao Sun <sunchao@apple.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 1e17c86) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Hi,
We use
snappy-java
in our project and one of our users has issues running on an ARM (Radxa 5b board) with v1.1.9.1. Downgrading to 1.1.8.4 seems to fix the issue. See the following issue for more information: Consensys/teku#7022I can see there is 1.1.10 version of snappy available (https://github.com/google/snappy/releases/tag/1.1.10) and
Compilation fixes for various environments
is mentioned. Is it possible a future release ofsnappy-java
referencing this version will fix the issue above? Also is downgrading the only option for now?The text was updated successfully, but these errors were encountered: