Skip to content

Unable to make field long java.nio.Buffer.address accessible error #3

Description

@mprokopov

I wanted to give a try to this wonderful tool on my MacBook Pro with M2 using Java 21

openjdk version "21" 2023-09-19
OpenJDK Runtime Environment Homebrew (build 21)
OpenJDK 64-Bit Server VM Homebrew (build 21, mixed mode, sharing)

My deps.edn looks like this

{:deps { lumberdev/tesserae {:git/url "https://github.com/lumberdev/tesserae"
                             :sha     "fcfabb928a44ba72b56c091725c3b564614eca91"} }}

It gives me the following error output

Library extraction is successful: /var/folders/wh/5kbm5w116fv7z4k9jypwh00w0000gp/T/lmdbjava-native-lib-b3ee26d9-0bb2-4a7c-a209-0608feda14c7/liblmdb.dylib with size 98986
Tesserae booting up...
CLI Opts: {:port 3900}
Execution error (InaccessibleObjectException) at java.lang.reflect.AccessibleObject/throwInaccessibleObjectException (AccessibleObject.java:391).
Unable to make field long java.nio.Buffer.address accessible: module java.base does not "opens java.nio" to unnamed module @52f877ca

Stack Overflow recommends adding --add-opens=java.base/java.nio=ALL-UNNAMED to Java args.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions