Re: Karaf Cave Release addressing KARAF-5555

2018-03-05 Thread Jean-Baptiste Onofré
I fixed another issue, I'm working on KARAF- today.

I keep you posted (via Jira).

Regards
JB

On 03/06/2018 12:13 AM, ivoleitao wrote:
> Hi,
> 
> Were you able to reproduce the bug ? I'm concerned that this could be some
> local problem on my side. 
> 
> Regards,
> Ivo Leitão
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

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


Re: Karaf Cave Release addressing KARAF-5555

2018-03-05 Thread ivoleitao
Hi,

Were you able to reproduce the bug ? I'm concerned that this could be some
local problem on my side. 

Regards,
Ivo Leitão



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html


Re: Unable to install some features as bootFeature in Karaf4

2018-03-05 Thread sathish_alwar
Hi,

Could you please comment on this issue.

Thanks



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html


Re: client.bat does not work in Karaf 4.1.5

2018-03-05 Thread Jean-Baptiste Onofré
Let me try to reproduce. I'm suspecting client reader (PumpInputStream) bad 
init.

Regards
JB

On 03/05/2018 03:30 PM, DUTERTRY Nicolas wrote:
> 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 : t...@quarendon.net [mailto:t...@quarendon.net] 
> Envoyé : lundi 5 mars 2018 15:26
> À : user@karaf.apache.org
> 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 t...@quarendon.net 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é  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é
>>> jbono...@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com

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


RE: client.bat does not work in Karaf 4.1.5

2018-03-05 Thread DUTERTRY Nicolas
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 : t...@quarendon.net [mailto:t...@quarendon.net] 
Envoyé : lundi 5 mars 2018 15:26
À : user@karaf.apache.org
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 t...@quarendon.net 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é  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é
> > jbono...@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com


Re: client.bat does not work in Karaf 4.1.5

2018-03-05 Thread tom
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 t...@quarendon.net 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é  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(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.
> > > 
> > >  
> > > 
> > > Do you have any idea what the issue is ?
> > > 
> > > Regards,
> > > 
> > > --
> > > 
> > > Nicolas Dutertry
> > > 
> > > Sopra HR Software - http://www.soprahr.com/
> > > 
> > >  
> > > 
> > 
> > -- 
> > Jean-Baptiste Onofré
> > jbono...@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com


Re: client.bat does not work in Karaf 4.1.5

2018-03-05 Thread tom
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é  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(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.
> > 
> >  
> > 
> > Do you have any idea what the issue is ?
> > 
> > Regards,
> > 
> > --
> > 
> > Nicolas Dutertry
> > 
> > Sopra HR Software - http://www.soprahr.com/
> > 
> >  
> > 
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com


RE: client.bat does not work in Karaf 4.1.5

2018-03-05 Thread DUTERTRY Nicolas
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:j...@nanthrax.net] 
Envoyé : lundi 5 mars 2018 14:02
À : user@karaf.apache.org
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é
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: client.bat does not work in Karaf 4.1.5

2018-03-05 Thread Jean-Baptiste Onofré
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(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.
> 
>  
> 
> Do you have any idea what the issue is ?
> 
> Regards,
> 
> --
> 
> Nicolas Dutertry
> 
> Sopra HR Software - http://www.soprahr.com/
> 
>  
> 

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


client.bat does not work in Karaf 4.1.5

2018-03-05 Thread DUTERTRY Nicolas
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(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.

Do you have any idea what the issue is ?
Regards,
--
Nicolas Dutertry
Sopra HR Software - http://www.soprahr.com/