Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchFieldError: org.jline.nativ.Kernel32.INVALID_HANDLE_VALUE #1154

Open
hohwille opened this issue Jan 15, 2025 · 0 comments
Open

NoSuchFieldError: org.jline.nativ.Kernel32.INVALID_HANDLE_VALUE #1154

hohwille opened this issue Jan 15, 2025 · 0 comments

Comments

@hohwille
Copy link

If I run jline on Windows on ARM powered CPU (Snapdragon X1P-42-100), I get flooded with this exception for every progress bar powered by jline:

Exception in thread "WindowsStreamPump" java.lang.NoSuchFieldError: org.jline.nativ.Kernel32.INVALID_HANDLE_VALUE
        at org.jline.terminal.impl.jni.win.NativeWinSysTerminal.processConsoleInput(NativeWinSysTerminal.java:210)
        at org.jline.terminal.impl.AbstractWindowsTerminal.pump(AbstractWindowsTerminal.java:464)
        at [email protected]/java.lang.Thread.runWith(Thread.java:1588)
        at [email protected]/java.lang.Thread.run(Thread.java:1575)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:832)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:808)

I used GraalVM native image but will also continue giving feedback about this error in JVM mode, etc.
To me it seems the problem is not related to the GraalVM native image but to the JNI invocation driven by jline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant