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 #169

Open
hohwille opened this issue Jan 31, 2025 · 3 comments
Open

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

hohwille opened this issue Jan 31, 2025 · 3 comments
Labels

Comments

@hohwille
Copy link

After upgrading jline, 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)

As discussed in jline/jline3#1154 this is not a bug of jline but progressbar needs some update to work with recent versions of jline.
It would be awesome if you could have a look and consider an according fix so we can upgrade to the latest versions to get other fixes included ("latest is greatest" is mainly the philosophy and with tools like dependabot we love to stay up-to-date. In case of such interdependencies and problems this does not work as expected).

BTW: Thank you so much for making progressbar library. You may want to try our product OSS IDEasy to see how we benefit from your great work. Maybe you might also want to consider using IDEasy for your development of progressbar to close the win-win cycle ;)

@ctongfei
Copy link
Owner

ctongfei commented Feb 1, 2025

Just to confirm, what version of jline are you using? 3.26.3?

@ctongfei
Copy link
Owner

ctongfei commented Feb 1, 2025

And what operating system and terminal are you operating under?

@ctongfei
Copy link
Owner

I can't reproduce this under jline v3.26.3.

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

No branches or pull requests

2 participants