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

Nicolas Dutertry commented on KARAF-5657:
-----------------------------------------

I think the issue comes from jline. When using client.bat with option "-l 4" we 
can see the following exception:
{code:none}
java.lang.ArrayIndexOutOfBoundsException: 4

        at 
org.jline.utils.NonBlocking$NonBlockingReaderInputStream.read(NonBlocking.java:116)

        at 
org.jline.utils.NonBlockingInputStream.read(NonBlockingInputStream.java:28)

        at 
org.jline.utils.NonBlockingInputStream.read(NonBlockingInputStream.java:63)

        at java.io.FilterInputStream.read(FilterInputStream.java:133)

        at 
org.apache.sshd.client.channel.ChannelSession.securedRead(ChannelSession.java:206)

        at 
org.apache.sshd.client.channel.ChannelSession.pumpInputStream(ChannelSession.java:166)

        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748){code}
 

I've opened an issue on jline github: 
[https://github.com/jline/jline3/issues/237]

> client.bat doesn't work on Windows
> ----------------------------------
>
>                 Key: KARAF-5657
>                 URL: https://issues.apache.org/jira/browse/KARAF-5657
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.5
>         Environment: Windows 7
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.1.6
>
>
> When using {{client.bat}} on Windows 7, the login is OK but we can't type 
> anything in the shell, it fails with:
> {code}
> 2018-03-05T13:35:39,496 | ERROR | Karaf ssh console user karaf | ShellUtil    
>                     | 43 - org.apache.karaf.shell.core - 4.1.5 | Exception 
> caught while executing command
> java.lang.NullPointerException: null
>       at 
> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:348)
>  [43:org.apache.karaf.shell.core:4.1.5]
>       at java.lang.Thread.run(Thread.java:748) [?:?]
> 2018-03-05T13:35:40,011 | WARN  | sshd-SshServer[50ae478a]-nio2-thread-3 | 
> ServerSessionImpl                | 48 - org.apache.sshd.core - 1.6.0 | 
> exceptionCaught(ServerSessionImpl[karaf@/127.0.0.1:65321])[state=Opened] 
> IOException: The specified network name is no longer available.
> {code}
> NB: putty works fine, and {{client.bat}} 4.1.4 works fine.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to