Skip to content

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

@hohwille

Description

@hohwille

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 java.base@23.0.1/java.lang.Thread.runWith(Thread.java:1588)
        at java.base@23.0.1/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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions