You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by gersid <ge...@inbox.ru> on 2015/07/17 12:38:47 UTC

client karaf versions 3.0.4/4.0.0 hang when executing command

if i run the client.bat as the following
command:*c:\apache-servicemix-6.0.0\bin>client -a 8101 -h 127.0.0.1 list*
then the command output is giving just partial list and then hangs.Same time
the karaf (servicemix) console is dropping the stack like the following:
karaf@root>Exception in thread "Thread-78" java.lang.NoSuchMethodError:
org.apache.felix.gogo.runtime.CommandProcessorImpl.closeSession(Lorg/apache/felix/gogo/runtime/CommandSessionImpl;)V       
at
org.apache.felix.gogo.runtime.CommandSessionImpl.close(CommandSessionImpl.java:74)       
at
org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl$1.close(SecuredCommandProcessorImpl.java:119)       
at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:154)       
at java.lang.Thread.run(Thread.java:745)Exception in thread "Thread-79"
java.lang.NoSuchMethodError:
org.apache.felix.gogo.runtime.CommandProcessorImpl.closeSession(Lorg/apache/felix/gogo/runtime/CommandSessionImpl;)V       
at
org.apache.felix.gogo.runtime.CommandSessionImpl.close(CommandSessionImpl.java:74)       
at
org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl$1.close(SecuredCommandProcessorImpl.java:119)       
at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:154)       
at java.lang.Thread.run(Thread.java:745)



--
View this message in context: http://karaf.922171.n3.nabble.com/client-karaf-versions-3-0-4-4-0-0-hang-when-executing-command-tp4041477.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re[2]: client karaf versions 3.0.4/4.0.0 hang when executing command

Posted by gersid <ge...@inbox.ru>.
 Hi JB,

Thanks for quick response.
No, it does not work in servicemix 6.0.0 (karaf 3.0.4) .

Regards
gersid



>Пятница, 17 июля 2015, 5:21 -07:00 от "jbonofre [via Karaf]" <ml...@n3.nabble.com>:
>
>Hi,
>
>For 4.0.0, we fixed an issue on the client (fixed for 4.0.1).
>
>Does it work in 3.0.4 if you do list (instead of list*) ?
>
>Regards
>JB
>
>On 07/17/2015 12:38 PM, gersid wrote:
>
>> if i run the client.bat as the following
>> command:*c:\apache-servicemix-6.0.0\bin>client -a 8101 -h 127.0.0.1 list*
>> then the command output is giving just partial list and then hangs.Same time
>> the karaf (servicemix) console is dropping the stack like the following:
>> karaf@root>Exception in thread "Thread-78" java.lang.NoSuchMethodError:
>> org.apache.felix.gogo.runtime.CommandProcessorImpl.closeSession(Lorg/apache/felix/gogo/runtime/CommandSessionImpl;)V
>> at
>> org.apache.felix.gogo.runtime.CommandSessionImpl.close(CommandSessionImpl.java:74)
>> at
>> org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl$1.close(SecuredCommandProcessorImpl.java:119)
>> at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:154)
>> at java.lang.Thread.run(Thread.java:745)Exception in thread "Thread-79"
>> java.lang.NoSuchMethodError:
>> org.apache.felix.gogo.runtime.CommandProcessorImpl.closeSession(Lorg/apache/felix/gogo/runtime/CommandSessionImpl;)V
>> at
>> org.apache.felix.gogo.runtime.CommandSessionImpl.close(CommandSessionImpl.java:74)
>> at
>> org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl$1.close(SecuredCommandProcessorImpl.java:119)
>> at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:154)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.com/client-karaf-versions-3-0-4-4-0-0-hang-when-executing-command-tp4041477.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>-- 
>Jean-Baptiste Onofré
>[hidden email]
>http://blog.nanthrax.net
>Talend - http://www.talend.com
>
>
>----------------------------------------------------------------------
>If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/client-karaf-versions-3-0-4-4-0-0-hang-when-executing-command-tp4041477p4041478.html
>To unsubscribe from client karaf versions 3.0.4/4.0.0 hang when executing command, click here .
>NAML




--
View this message in context: http://karaf.922171.n3.nabble.com/client-karaf-versions-3-0-4-4-0-0-hang-when-executing-command-tp4041477p4041479.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: client karaf versions 3.0.4/4.0.0 hang when executing command

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

For 4.0.0, we fixed an issue on the client (fixed for 4.0.1).

Does it work in 3.0.4 if you do list (instead of list*) ?

Regards
JB

On 07/17/2015 12:38 PM, gersid wrote:
> if i run the client.bat as the following
> command:*c:\apache-servicemix-6.0.0\bin>client -a 8101 -h 127.0.0.1 list*
> then the command output is giving just partial list and then hangs.Same time
> the karaf (servicemix) console is dropping the stack like the following:
> karaf@root>Exception in thread "Thread-78" java.lang.NoSuchMethodError:
> org.apache.felix.gogo.runtime.CommandProcessorImpl.closeSession(Lorg/apache/felix/gogo/runtime/CommandSessionImpl;)V
> at
> org.apache.felix.gogo.runtime.CommandSessionImpl.close(CommandSessionImpl.java:74)
> at
> org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl$1.close(SecuredCommandProcessorImpl.java:119)
> at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:154)
> at java.lang.Thread.run(Thread.java:745)Exception in thread "Thread-79"
> java.lang.NoSuchMethodError:
> org.apache.felix.gogo.runtime.CommandProcessorImpl.closeSession(Lorg/apache/felix/gogo/runtime/CommandSessionImpl;)V
> at
> org.apache.felix.gogo.runtime.CommandSessionImpl.close(CommandSessionImpl.java:74)
> at
> org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl$1.close(SecuredCommandProcessorImpl.java:119)
> at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:154)
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/client-karaf-versions-3-0-4-4-0-0-hang-when-executing-command-tp4041477.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

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

Re: client karaf versions 3.0.4/4.0.0 hang when executing command

Posted by Victor Antonovich <vi...@mobileap.ru>.
Hi!

21.07.2015 12:11, gersid wrote:

> Hi JB
> 
>  imho, the issue sounds like "the run/client command session is not closed
> due to exception dropped by felix.gogo". The karaf versions affected are:
> 3.0.4, 4.0.0.
> (I could not try the karaf 4.0.1 as the distribution is not published yet.)
> Btw, is there defect on that and perspectiva  for  fixing this in  karaf
> 3.0.x as well?
> 

BTW, Karaf 3.0.4 client works just well with Karaf 3.0.3, but not vice
versa. Current Karaf 3.0.5-SNAPSHOT also hang when executing client command.

> 
> Just in case, we use the client for sending comand batch to karaf instance
> from OS scripts. For example, it is  for automated instance setup and custom
> features installation from maven repository.
> 

We using client commands for Docker container building, so current
client/server interaction behaviour prevent us from upgrading to 3.0.4.

WBR,
Victor.

Re: client karaf versions 3.0.4/4.0.0 hang when executing command

Posted by gersid <ge...@inbox.ru>.
Hi JB

 imho, the issue sounds like "the run/client command session is not closed
due to exception dropped by felix.gogo". The karaf versions affected are:
3.0.4, 4.0.0.
(I could not try the karaf 4.0.1 as the distribution is not published yet.)
Btw, is there defect on that and perspectiva  for  fixing this in  karaf
3.0.x as well?

Thanks and regards
gersid

Just in case, we use the client for sending comand batch to karaf instance
from OS scripts. For example, it is  for automated instance setup and custom
features installation from maven repository.




--
View this message in context: http://karaf.922171.n3.nabble.com/client-karaf-versions-3-0-4-4-0-0-hang-when-executing-command-tp4041477p4041520.html
Sent from the Karaf - User mailing list archive at Nabble.com.