xerial/snappy-java

[UNSUPPORTED_PLATFORM] pure-java snappy requires access to java.nio.Buffer

Closed this issue · 2 comments

Hello guys..
I searched for that and I didn't find anything around it. I just updated my app for using JAVA 16, but when we try to use the snappy compressor with mongodb, I get this message:

org.xerial.snappy.SnappyError: [UNSUPPORTED_PLATFORM] pure-java snappy requires access to java.nio.Buffer raw address field

I tried with 1.1.8.4 and 1.1.8.5-SNAPSHOT and I got the same error for both.
I am using this docker image: adoptopenjdk/openjdk16:alpine-jre

With Java 15 it works fine.

May somebody help me with that?

Thank you!

Hi, if you are using docker alpine try adding

apk add --no-cache gcompat

in my case worked with jdk17 as well

Hi, if you are using docker alpine try adding

apk add --no-cache gcompat

in my case worked with jdk17 as well

Perfect! Thanks a lot!