Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16449

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.0.0
    • None
    • Java
    • None

    Description

      Getting the following stack trace when running on Java 18.

      BaseAllocator throws this when it calls the DefaultAllocationManagerFactory.

          private ArrowBuf createEmpty() {
              return this.allocationManagerFactory.empty();
          }
      
      Caused by: java.lang.RuntimeException: Failed to initialize MemoryUtil.
      	at org.apache.arrow.memory.util.MemoryUtil.<clinit>(MemoryUtil.java:136)
      	... 20 more
      Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field long java.nio.Buffer.address accessible: module java.base does not \"opens java.nio\" to unnamed module @3453e479
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
      	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
      	at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
      	at org.apache.arrow.memory.util.MemoryUtil.<clinit>(MemoryUtil.java:84)
      	... 20 more
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gloeckner.daniel@googlemail.com Daniel Glöckner
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: