You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "peter.berkman" <pe...@cornergrove.com> on 2017/04/13 17:17:31 UTC

Karaf 4.1.1 Console Issues Over SSH (PuTTY)

I am on Karaf 4.1.1 and accessing the console from Putty (basic config) 

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





--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-1-Console-Issues-Over-SSH-PuTTY-tp4050131.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.1.1 Console Issues Over SSH (PuTTY)

Posted by "peter.berkman" <pe...@cornergrove.com>.
yep...  Windows 10.  However, we have seen similar on Mac's.



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-1-Console-Issues-Over-SSH-PuTTY-tp4050131p4050133.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.1.1 Console Issues Over SSH (PuTTY)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, it's what I thought ;)

We will start a shell console review campaign on Windows for 4.1.2 release.

Thanks for the report.

Regards
JB

On 04/13/2017 07:43 PM, peter.berkman wrote:
> actually, it seems that it depends where the server is running.  Running on
> Windows, the behavior above.  However, if the SERVER is running on unix, it
> works fine (even from Putty on Windows client)..
>
> maybe a hint...
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-1-Console-Issues-Over-SSH-PuTTY-tp4050131p4050134.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 4.1.1 Console Issues Over SSH (PuTTY)

Posted by "peter.berkman" <pe...@cornergrove.com>.
actually, it seems that it depends where the server is running.  Running on
Windows, the behavior above.  However, if the SERVER is running on unix, it
works fine (even from Putty on Windows client)..

maybe a hint...



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-1-Console-Issues-Over-SSH-PuTTY-tp4050131p4050134.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.1.1 Console Issues Over SSH (PuTTY)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Peter,

I guess you are on Windows, right ?

Regards
JB

On 04/13/2017 07:17 PM, peter.berkman wrote:
> I am on Karaf 4.1.1 and accessing the console from Putty (basic config)
>
> 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
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-1-Console-Issues-Over-SSH-PuTTY-tp4050131.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 4.1.1 Console Issues Over SSH (PuTTY)

Posted by "peter.berkman" <pe...@cornergrove.com>.
https://issues.apache.org/jira/browse/KARAF-5096



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-1-Console-Issues-Over-SSH-PuTTY-tp4050131p4050146.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.1.1 Console Issues Over SSH (PuTTY)

Posted by Guillaume Nodet <gn...@apache.org>.
Could you please raise a JIRA issue with the above informations ?

2017-04-13 19:17 GMT+02:00 peter.berkman <pe...@cornergrove.com>:

> I am on Karaf 4.1.1 and accessing the console from Putty (basic config)
>
> 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
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Karaf-4-1-1-Console-Issues-Over-SSH-PuTTY-tp4050131.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet