Skip to content

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

Open
@mmuthukrishnan95

Description

@mmuthukrishnan95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions