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

Terminal initialization failed error with kport init on Windows #16

Open
lstocchi opened this issue Dec 18, 2023 · 0 comments
Open

Terminal initialization failed error with kport init on Windows #16

lstocchi opened this issue Dec 18, 2023 · 0 comments

Comments

@lstocchi
Copy link

After having connected to a kubernetes cluster, i face this error when running kport init on windows

kubectl kport init
? Configuring the Kube kport for
        - cluster: kind-kind-cluster-2
        - namespace: default


[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.UnsatisfiedLinkError: org.fusesource.jansi.internal.Kernel32.GetStdHandle(I)J [symbol: Java_org_fusesource_jansi_internal_Kernel32_GetStdHandle or Java_org_fusesource_jansi_internal_Kernel32_GetStdHandle__I]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:152)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:53)
        at org.fusesource.jansi.internal.Kernel32.GetStdHandle(Kernel32.java)
        at org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSupport.java:50)
        at jline.WindowsTerminal.getConsoleMode(WindowsTerminal.java:211)
        at jline.WindowsTerminal.init(WindowsTerminal.java:81)
        at jline.TerminalFactory.create(TerminalFactory.java:116)
        at jline.TerminalFactory.get(TerminalFactory.java:180)
        at jline.TerminalFactory.get(TerminalFactory.java:186)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:244)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:236)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:224)
        at de.codeshelf.consoleui.prompt.reader.ConsoleReaderImpl.<init>(ConsoleReaderImpl.java:28)
        at de.codeshelf.consoleui.prompt.AbstractPrompt.<init>(AbstractPrompt.java:54)
        at de.codeshelf.consoleui.prompt.AbstractListablePrompt.<init>(AbstractListablePrompt.java:42)
        at de.codeshelf.consoleui.prompt.ListPrompt.<init>(ListPrompt.java:34)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.getListPrompt(ConsolePrompt.java:58)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.doPrompt(ConsolePrompt.java:134)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.prompt(ConsolePrompt.java:94)
        at org.eclipse.jkube.kport.commands.InitCommand.promptNextAction(InitCommand.java:139)
        at org.eclipse.jkube.kport.commands.InitCommand.run(InitCommand.java:91)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at io.quarkus.picocli.runtime.PicocliRunner$EventExecutionStrategy.execute(PicocliRunner.java:26)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at io.quarkus.picocli.runtime.PicocliRunner.run(PicocliRunner.java:40)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:129)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)

? Choose an action:
> ? Expose Local Service to the remote cluster
  ? Expose a Remote Service locally
  ? Save in .kube/!!!
  ? Save in [current folder]/.kport.yaml!!!
  ? Quit without saving
java.lang.RuntimeException: java.lang.NullPointerException
        at org.eclipse.jkube.kport.commands.InitCommand.promptNextAction(InitCommand.java:144)
        at org.eclipse.jkube.kport.commands.InitCommand.run(InitCommand.java:91)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
        at io.quarkus.picocli.runtime.PicocliRunner$EventExecutionStrategy.execute(PicocliRunner.java:26)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at io.quarkus.picocli.runtime.PicocliRunner.run(PicocliRunner.java:40)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:129)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
        at io.quarkus.runner.GeneratedMain.main(Unknown Source)
Caused by: java.lang.NullPointerException
        at de.codeshelf.consoleui.prompt.ListPrompt.prompt(ListPrompt.java:77)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.doPrompt(ConsolePrompt.java:134)
        at de.codeshelf.consoleui.prompt.ConsolePrompt.prompt(ConsolePrompt.java:94)
        at org.eclipse.jkube.kport.commands.InitCommand.promptNextAction(InitCommand.java:139)
        ... 15 more
[WARN] Task failed
java.lang.UnsatisfiedLinkError: org.fusesource.jansi.internal.Kernel32.GetStdHandle(I)J [symbol: Java_org_fusesource_jansi_internal_Kernel32_GetStdHandle or Java_org_fusesource_jansi_internal_Kernel32_GetStdHandle__I]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:152)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:53)
        at org.fusesource.jansi.internal.Kernel32.GetStdHandle(Kernel32.java)
        at org.fusesource.jansi.internal.WindowsSupport.setConsoleMode(WindowsSupport.java:60)
        at jline.WindowsTerminal.setConsoleMode(WindowsTerminal.java:215)
        at jline.WindowsTerminal.restore(WindowsTerminal.java:94)
        at jline.TerminalSupport$1.run(TerminalSupport.java:52)
        at jline.internal.ShutdownHooks.runTasks(ShutdownHooks.java:66)
        at jline.internal.ShutdownHooks.access$000(ShutdownHooks.java:22)
        at jline.internal.ShutdownHooks$1.run(ShutdownHooks.java:47)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:775)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.windows.WindowsPlatformThreads.osThreadStartRoutine(WindowsPlatformThreads.java:178)
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