You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2017/05/03 12:11:04 UTC

[jira] [Commented] (KARAF-5096) Karaf 4.1.1 Console Issues Over SSH (PuTTY)

    [ https://issues.apache.org/jira/browse/KARAF-5096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15994734#comment-15994734 ] 

Guillaume Nodet commented on KARAF-5096:
----------------------------------------

#2 can be worked around by adding ```unsetopt insert-tab``` to the startup script (or in the command line).
I'm fixing the other issues.


> Karaf 4.1.1 Console Issues Over SSH (PuTTY)
> -------------------------------------------
>
>                 Key: KARAF-5096
>                 URL: https://issues.apache.org/jira/browse/KARAF-5096
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>         Environment: Windows 10 running Karaf, Windows 10 running PuTTY against Karaf instance.
>            Reporter: Peter Berkman
>            Assignee: Guillaume Nodet
>
> 1. the tab completion completely messes up the screen. if I run
> bin/client.bat or bin/karaf.bat, everything looks perfect.
> 2. TAB without anything before it used to give the complete list of
> commands, now just adds a space on the line.
> 3. CTRL-D just beeps.  I have to run "logout" to close the Putty session
> cleanly.
> 4. Running non-editor type commands, like bundle:info should not put me in a "vi like" mode.  CTRL-C just beeps, can't just hit return to go back to
> console.   Have to use 'q'.
> 5. Running 'help <any command>' produces a blank screen, then once you 'q' out, some (like 'watch') show: gogo: NullPointerException: "in" is null!
> The previous shell was much more intuitive and easy to use - IMHO.
> NOTE: if you try #5 in bin/client.bat, you get the gogo:
> NullPointerException and in the karaf.log:
> 20170413 10:16:16.641 [WARN ] sshd-SshServer[4a5eaf37]-nio2-thread-1 |102:org.jline | root | Unable to retrieve infocmp for type dummy
> java.io.IOException: Cannot run program "infocmp": CreateProcess error=2,
> The system cannot find the file specified
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)[:1.8.0_92]
>         at
> org.jline.utils.InfoCmp.getInfoCmp(InfoCmp.java:547)[102:org.jline:3.2.0]
>         at
> org.jline.terminal.impl.AbstractTerminal.parseInfoCmp(AbstractTerminal.java:156)[102:org.jline:3.2.0]
>         at
> org.jline.terminal.impl.LineDisciplineTerminal.<init>(LineDisciplineTerminal.java:101)[102:org.jline:3.2.0]
>         at
> org.jline.terminal.impl.ExternalTerminal.<init>(ExternalTerminal.java:48)[102:org.jline:3.2.0]
>         at
> org.jline.terminal.impl.ExternalTerminal.<init>(ExternalTerminal.java:40)[102:org.jline:3.2.0]
>         at
> org.apache.karaf.shell.ssh.SshTerminal.<init>(SshTerminal.java:43)[70:org.apache.karaf.shell.ssh:4.1.1]
>         at
> org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl.start(ShellFactoryImpl.java:103)[70:org.apache.karaf.shell.ssh:4.1.1]
>         at
> org.apache.sshd.server.channel.ChannelSession.sendResponse(ChannelSession.java:363)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.channel.AbstractChannel.handleUnknownChannelRequest(AbstractChannel.java:301)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.channel.AbstractChannel.handleChannelRequest(AbstractChannel.java:283)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.channel.AbstractChannel.handleRequest(AbstractChannel.java:245)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.session.helpers.AbstractConnectionService.channelRequest(AbstractConnectionService.java:485)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.session.helpers.AbstractConnectionService.process(AbstractConnectionService.java:329)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(AbstractSession.java:564)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(AbstractSession.java:497)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1406)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:458)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:67)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:277)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:257)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:254)[79:org.apache.sshd.core:1.4.0]
>         at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Nio2CompletionHandler.java:38)[79:org.apache.sshd.core:1.4.0]
>         at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_92]
>         at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:37)[79:org.apache.sshd.core:1.4.0]
>         at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.8.0_92]
>         at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.8.0_92]
>         at
> sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_92]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_92]
> Caused by: java.io.IOException: CreateProcess error=2, The system cannot
> find the file specified
>         at java.lang.ProcessImpl.create(Native Method)[:1.8.0_92]
>         at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)[:1.8.0_92]
>         at java.lang.ProcessImpl.start(ProcessImpl.java:137)[:1.8.0_92]
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)[:1.8.0_92]
>         ... 30 more



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)