karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Dutertry (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5657) client.bat doesn't work on Windows
Date Wed, 07 Mar 2018 09:36:00 GMT

    [ 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)

Mime
View raw message