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

jline exceptions NoSuchFieldError: org.jline.nativ.Kernel32.INVALID_HANDLE_VALUE #941

Closed
hohwille opened this issue Jan 15, 2025 · 4 comments · Fixed by #946
Closed

jline exceptions NoSuchFieldError: org.jline.nativ.Kernel32.INVALID_HANDLE_VALUE #941

hohwille opened this issue Jan 15, 2025 · 4 comments · Fixed by #946
Assignees
Labels
ARM bug Something isn't working good first issue Good for newcomers internal Nothing to be added to CHANGELOG, only internal story windows specific for Microsoft Windows OS

Comments

@hohwille
Copy link
Member

$ ide create IDEasy -
No settings repository was found.
Creating new IDEasy project in C:\Users\joerg\projects\IDEasy
Start: Clone settings repository
Cloning into '.'...
remote: Enumerating objects: 1296, done.
remote: Counting objects: 100% (327/327), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 1296 (delta 250), reused 174 (delta 172), pack-reused 969 (from 1)
Receiving objects: 100% (1296/1296), 236.83 KiB | 13.93 MiB/s, done.
Resolving deltas: 100% (501/501), done.
Successfully updated settings repository.
Start: Copy configuration templates
Copying template C:\Users\joerg\projects\IDEasy\settings\templates\conf\ide.properties to C:\Users\joerg\projects\IDEasy\conf.
Copying template C:\Users\joerg\projects\IDEasy\settings\templates\conf\npm\.npmrc to C:\Users\joerg\projects\IDEasy\conf\npm.
Successfully ended step 'Copy configuration templates'.
Start: Install or update software
Cloning into '.'...
remote: Enumerating objects: 88957, done.
remote: Counting objects: 100% (22684/22684), done.
remote: Compressing objects: 100% (2169/2169), done.
remote: Total 88957 (delta 20773), reused 20783 (delta 20419), pack-reused 66273 (from 1)
Receiving objects: 100% (88957/88957), 8.13 MiB | 28.91 MiB/s, done.
Resolving deltas: 100% (45563/45563), done.
Updating files: 100% (39509/39509), done.
Trying to download node-v18.20.5-windows-x64.zip from https://nodejs.org/dist/v18.20.5/node-v18.20.5-win-x64.zip
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)
Downloading 100% [=============================================================] 27/27MiB (0:00:01 / 0:00:00) 27,4MiB/s
Checksum 910237449895b4de61026568dc076fa6c3ffcd667563ed03112a4a77e1f1556b is correct.
Extracting ZIP file C:\Users\joerg\Downloads\ide\default\node-v18.20.5-windows-x64.zip to C:\Users\joerg\projects\_ide\tmp\extract-node-v18.20.5-windows-x64.zip
Extracting   0% [                                                                       ]  0/77MiB (0:00:00 / ?) ?MiB/s
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(PlatformThreadsExtracting 100% [==============================================================] 77/77MiB (0:00:03 / 0:00:00) 25,9MiB/s
Successfully installed node in version v18.20.5
Start: Install npm
Trying to download npm-11.0.0.tgz from https://registry.npmjs.org/npm/-/npm-11.0.0.tgz
Downloading   3% [===                                                               ] 0/2MiB (0:00:00 / 0:00:00) ?MiB/s
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(PlatformThreadsDownloading 100% [==================================================================] 2/2MiB (0:00:00 / 0:00:00) ?MiB/s
Checksum f69aa67502f6fc1fe330e4b454110d625205e95df557aef9779e1e813e0e1289 is correct.
Extracting TAR file C:\Users\joerg\Downloads\ide\default\npm-11.0.0.tgz to C:\Users\joerg\projects\_ide\tmp\extract-npm-11.0.0.tgz
Extracting   0% [                                                                         ] 0/2MiB (0:00:00 / ?) ?MiB/s
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(PlatformThreadsExtracting 100% [==================================================================] 2/2MiB (0:00:04 / 0:00:00) ,7MiB/s
Due to lack of permissions, Microsoft's mklink with junction had to be used to create a Symlink. See https://github.com/devonfw/IDEasy/blob/main/documentation/symlinks.asciidoc for further details. Error was: C:\Users\joerg\projects\IDEasy\software\npm: Dem Client fehlt ein erforderliches Recht
You are on Windows and you do not have permissions to create symbolic links. Junctions are used as an alternative, however, these can not point to relative paths. So the source (..\..\_ide\software\default\npm\npm\11.0.0) is interpreted as an absolute path.
Verbindung erstellt für C:\Users\joerg\projects\IDEasy\software\npm <<===>> C:\Users\joerg\projects\_ide\software\default\npm\npm\11.0.0
Successfully installed npm in version 11.0.0
Trying to download java-21.0.5_11-windows-x64.zip from https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_windows_hotspot_21.0.5_11.zip
Downloading   0% [                                                              ]   0/195MiB (0:00:00 / 0:00:12) ?MiB/s
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(PlatformThreadsDownloading 100% [===========================================================] 195/195MiB (0:00:06 / 0:00:00) 32,7MiB/s
Checksum 6f09d4a3598542313cca1540106d537c7092a54e415d569f7b928160a90d3128 is correct.
Extracting ZIP file C:\Users\joerg\Downloads\ide\default\java-21.0.5_11-windows-x64.zip to C:\Users\joerg\projects\_ide\tmp\extract-java-21.0.5_11-windows-x64.zip
Extracting   0% [                                                                     ]   0/329MiB (0:00:00 / ?) ?MiB/s
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(PlatformThreadsExtracting 100% [===========================================================] 329/329MiB (0:00:01 / 0:00:00) 329,2MiB/s
Due to lack of permissions, Microsoft's mklink with junction had to be used to create a Symlink. See https://github.com/devonfw/IDEasy/blob/main/documentation/symlinks.asciidoc for further details. Error was: C:\Users\joerg\projects\IDEasy\software\java: Dem Client fehlt ein erforderliches Recht
You are on Windows and you do not have permissions to create symbolic links. Junctions are used as an alternative, however, these can not point to relative paths. So the source (..\..\_ide\software\default\java\java\21.0.5_11) is interpreted as an absolute path.
Verbindung erstellt für C:\Users\joerg\projects\IDEasy\software\java <<===>> C:\Users\joerg\projects\_ide\software\default\java\java\21.0.5_11
Successfully installed java in version 21.0.5_11
Start: Install mvn
Deleting corrupted installation at C:\Users\joerg\projects\_ide\software\default\mvn\mvn\3.9.9
Trying to download mvn-3.9.9.tar.gz from https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz
Downloading   0% [                                                                        ] 0/8MiB (0:00:00 / ?) ?MiB/s
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(PlatformThreadsDownloading 100% [================================================================] 8/8MiB (0:00:01 / 0:00:00) 8,7MiB/s
Checksum 7a9cdf674fc1703d6382f5f330b3d110ea1b512b51f1652846d9e4e8a588d766 is correct.
Extracting TAR file C:\Users\joerg\Downloads\ide\default\mvn-3.9.9.tar.gz to C:\Users\joerg\projects\_ide\tmp\extract-mvn-3.9.9.tar.gz
Extracting   0% [                                                                         ] 0/8MiB (0:00:00 / ?) ?MiB/s
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(PlatformThreadsExtracting 100% [===================================================================] 8/8MiB (0:00:00 / 0:00:00) ?MiB/s
Due to lack of permissions, Microsoft's mklink with junction had to be used to create a Symlink. See https://github.com/devonfw/IDEasy/blob/main/documentation/symlinks.asciidoc for further details. Error was: C:\Users\joerg\projects\IDEasy\software\mvn: Dem Client fehlt ein erforderliches Recht
You are on Windows and you do not have permissions to create symbolic links. Junctions are used as an alternative, however, these can not point to relative paths. So the source (..\..\_ide\software\default\mvn\mvn\3.9.9) is interpreted as an absolute path.
Verbindung erstellt für C:\Users\joerg\projects\IDEasy\software\mvn <<===>> C:\Users\joerg\projects\_ide\software\default\mvn\mvn\3.9.9
Start: Create mvn settings security file at C:\Users\joerg\projects\IDEasy\conf\mvn\settings-security.xml
Successfully ended step 'Create mvn settings security file at C:\Users\joerg\projects\IDEasy\conf\mvn\settings-security.xml'.
Start: Create mvn settings file at C:\Users\joerg\projects\IDEasy\conf\mvn\settings.xml
Successfully ended step 'Create mvn settings file at C:\Users\joerg\projects\IDEasy\conf\mvn\settings.xml'.
Successfully installed mvn in version 3.9.9
Successfully ended step 'Install or update software'.
Importing repository from IDEasy.properties ...
Repository is not active by default.
Skipping repository - use force (-f) to setup all repositories ...
Successfully created new project 'IDEasy'.
Successfully completed ide (create,IDEasy,-)
@hohwille hohwille added bug Something isn't working windows specific for Microsoft Windows OS ARM labels Jan 15, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Jan 15, 2025
@hohwille
Copy link
Member Author

jline/jline3#1154

@hohwille hohwille changed the title jline exceptions on Win@ARM Exception in thread "WindowsStreamPump" java.lang.NoSuchFieldError: org.jline.nativ.Kernel32.INVALID_HANDLE_VALUE jline exceptions NoSuchFieldError: org.jline.nativ.Kernel32.INVALID_HANDLE_VALUE Jan 16, 2025
@hohwille
Copy link
Member Author

This error was caused by PR #927 from dependabot.
I am very happy that I found it before the release.
We need to revert this upgrade and wait until a new jline version is released with jline/jline3#1154 being fixed.

@hohwille
Copy link
Member Author

In this line:

<jline.version>3.28.0</jline.version>

Change back to:
<jline.version>3.24.1</jline.version>

@hohwille hohwille added the good first issue Good for newcomers label Jan 16, 2025
@hohwille hohwille added this to the release:2025.01.001 milestone Jan 16, 2025
@yurii-yu yurii-yu self-assigned this Jan 17, 2025
@hohwille hohwille added the internal Nothing to be added to CHANGELOG, only internal story label Jan 17, 2025
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in IDEasy board Jan 17, 2025
@hohwille
Copy link
Member Author

See ctongfei/progressbar#169 for the latest status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM bug Something isn't working good first issue Good for newcomers internal Nothing to be added to CHANGELOG, only internal story windows specific for Microsoft Windows OS
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants