← 输入框|github.com|刷新
Skip to content

JNI attached native thread (null caller frame) cannot access a member of class java.util.ArrayList$Itr (in module java.base) with modifiers "public" #515

Open

Description

@Heath123

image
Text error (I used OCR so some things might be wrong):

Uncaught Exception:
Error: Error running instance method
java.lang.IllegalAccessException: JNI attached native thread (null caller frame) cannot access a member of class java.util.ArrayList$Itr (in module
java.base) with modifiers "public"
    at java.base/-
jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:406)
    at java.base/
jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:349)
    at java.base/-
java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:647)
    at java.base/java.lang.reflect.Method.invoke (Method.java:556)
at Timeout._onTimeout (home/heath/synced Projects/pakkit/src/proxy/bedrock/proxy.js:88:54)
    at listOnTimeout (internal/timers.js:531:17)
    at process Timers (internal/timers.js:475:7)

Code (JS):

console.log(proxyPass.packetQueue.iteratorSync().nextSync())

Property (Java) that it's accessing:

public static ArrayList<JsonPacketData> packetQueue = new ArrayList<>();

Seems to be related to https://bugs.openjdk.java.net/browse/JDK-8221530, as it says null caller frame? But I think I'm using Java 14 so that should be fixed?

Activity

  1. changed the title [-]JNI attached native thread cannot access[/-] [+]JNI attached native thread (null caller frame) cannot access a member of class java.util.ArrayList$Itr (in module java.base) with modifiers "public"[/+] on Dec 16, 2020
  2. mmurph7777 commented on Jun 15, 2022

    @mmurph7777

    Seeing this same issue using Java 17. Is there a fix or a work around?

  3. added a commit that references this issue on Apr 17, 2023
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions