I use Windows 7 (sorry ;-)).

I've tried to cleanup shell.init.script, but it does not work.

It works fine with Karaf 4.1.4. 
It also works fine when starting Karaf 4.1.5 and using Putty to get a SSH 
session. The issue is really in client.bat.

Regards,
--
Nicolas Dutertry

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:[email protected]] 
Envoyé : lundi 5 mars 2018 14:02
À : [email protected]
Objet : Re: client.bat does not work in Karaf 4.1.5

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(ConsoleSess
> ionImpl.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=Opene
> d]
> 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

Reply via email to