When running client.bat with option "-l 4", I can see the following error :
5554
[sshd-ClientInputStreamPump[ChannelShell[id=0,-recipient=0]-ClientSessionImpl[karaf@localhost/127.0.0.1:8101]]-thread-1]
DEBUG org.apache.sshd.client.channel.ChannelShell -
pumpInputStream([ChannelShell[id=0,
recipient=0]-ClientSessionImpl[karaf@localhost/127.0.0.1:8101],
ArrayIndexOutOfBoundsException, 4]) Caught null : {}
5554
[sshd-ClientInputStreamPump[ChannelShell[id=0,-recipient=0]-ClientSessionImpl[karaf@localhost/127.0.0.1:8101]]-thread-1]
TRACE org.apache.sshd.client.channel.ChannelShell -
pumpInputStream(ChannelShell[id=0,
recipient=0]-ClientSessionImpl[karaf@localhost/127.0.0.1:8101]) caught
exception details
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)
--
Nicolas Dutertry
-----Message d'origine-----
De : [email protected] [mailto:[email protected]]
Envoyé : lundi 5 mars 2018 15:26
À : [email protected]
Objet : Re: client.bat does not work in Karaf 4.1.5
There was an incompatibility I believe in 4.1.3, where a dependency introduced
a breaking change in a point release that was picked up by karaf. 4.1.5 has
similar problems, though I don't know what the exact cause is there yet. We
jumped to 4.1.5 and then back down to 4.1.4 as that one worked. In 4.1.3/4.1.5,
external SSH clients work, just not client.bat.
Vanilla 4.1.5 download, start karaf.bat, start client.bat, can't login.
> On 05 March 2018 at 13:54 [email protected] wrote:
>
>
> We've seen the same thing. 4.1.3 had a problem, 4.1.5 has a different
> problem, 4.1.4 is the sweetspot at the moment. I can't recall the details,
> I'll dig them out.
>
> > On 05 March 2018 at 13:02 Jean-Baptiste Onofré <[email protected]> wrote:
> >
> >
> > Hi Nicolas,
> >
> > the big issue is just Windows ;)
> >
> > Without kidding, it seems that the ParsedLine line is null in the Console
> > reader.
> >
> > It could be related to your terminal. What's your Windows version ?
> >
> > Can you try to cleanup etc/shell.init.script (especially around the
> > color
> > settings) ?
> > Does it work with Karaf 4.1.4 ?
> >
> > Thanks !
> > Regards
> > JB
> >
> > On 03/05/2018 01:56 PM, DUTERTRY Nicolas wrote:
> > > Hi,
> > >
> > >
> > >
> > > I have just downloaded Karaf 4.1.5 and it seems that, under
> > > Windows, it is not possible to obtain an interactive SSH session anymore
> > > with the script “client.bat”.
> > >
> > > The login is successful but when I press any key the SSH session ends.
> > >
> > > I have this error in logs :
> > >
> > >
> > >
> > > 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(Console
> > > SessionImpl.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=O
> > > pened]
> > > IOException: The specified network name is no longer available.
> > >
> > >
> > >
> > > Do you have any idea what the issue is ?
> > >
> > > Regards,
> > >
> > > --
> > >
> > > Nicolas Dutertry
> > >
> > > Sopra HR Software - http://www.soprahr.com/
> > >
> > >
> > >
> >
> > --
> > Jean-Baptiste Onofré
> > [email protected]
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com