Skip to content

[Java] java.lang.reflect.InaccessibleObjectException on Java 18 #340

Description

@asfimport

Getting the following stack trace when running on Java 18.

BaseAllocator throws this when it calls the DefaultAllocationManagerFactory.

privateArrowBufcreateEmpty() {
returnthis.allocationManagerFactory.empty();
}
Causedby: java.lang.RuntimeException: FailedtoinitializeMemoryUtil.
atorg.apache.arrow.memory.util.MemoryUtil.<clinit>(MemoryUtil.java:136)
... 20moreCausedby: java.lang.reflect.InaccessibleObjectException: Unabletomakefieldlongjava.nio.Buffer.addressaccessible: modulejava.basedoesnot \"opensjava.nio\"tounnamedmodule@3453e479atjava.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
atjava.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
atjava.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
atjava.base/java.lang.reflect.Field.setAccessible(Field.java:172)
atorg.apache.arrow.memory.util.MemoryUtil.<clinit>(MemoryUtil.java:84)
... 20more

Reporter: Daniel Glöckner

Related issues:

Note: This issue was originally created as ARROW-16449. Please see the migration documentation for further details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions