Skip to content

In Java 17 snappy requires access to java.nio.Buffer raw address field #12

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

Open
mmuthukrishnan95 opened this issue Feb 19, 2025 · 0 comments · May be fixed by #13
Open

In Java 17 snappy requires access to java.nio.Buffer raw address field #12

mmuthukrishnan95 opened this issue Feb 19, 2025 · 0 comments · May be fixed by #13

Comments

@mmuthukrishnan95
Copy link

I got the error with Java 17 with the older version of snappy-java xerial/snappy-java#348

[UNSUPPORTED_PLATFORM] pure-java snappy requires access to java.nio.Buffer raw address field {:entity \"/123456\", :throwable #error {
 :cause \"[UNSUPPORTED_PLATFORM] pure-java snappy requires access to java.nio.Buffer raw address field\"
 :via
 [{:type org.xerial.snappy.SnappyError
   :message \"[UNSUPPORTED_PLATFORM] pure-java snappy requires access to java.nio.Buffer raw address field\"
   :at [org.xerial.snappy.pure.UnsafeUtil <clinit> \"UnsafeUtil.java\" 49]}]
 :trace
 [[org.xerial.snappy.pure.UnsafeUtil <clinit> \"UnsafeUtil.java\" 49]
  [org.xerial.snappy.pure.SnappyRawCompressor writeUncompressedLength \"SnappyRawCompressor.java\" 408]
  [org.xerial.snappy.pure.PureJavaSnappy rawCompress \"PureJavaSnappy.java\" 128]
  [org.xerial.snappy.Snappy rawCompress \"Snappy.java\" 424]
  [byte_transforms$fn__18465 invokeStatic \"byte_transforms.clj\" 350]
[byte_transforms$compress invokeStatic \"byte_transforms.clj\" 270]

The above issue has been fixed with snappy-java library, Hence update of the snappy-java library is required for byte-transforms also

@mmuthukrishnan95 mmuthukrishnan95 changed the title pure-java snappy requires access to java.nio.Buffer raw address field In Java 17 snappy requires access to java.nio.Buffer raw address field Feb 19, 2025
@mmuthukrishnan95 mmuthukrishnan95 linked a pull request Feb 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant