You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/07/01 11:07:05 UTC

[jira] [Commented] (KARAF-3819) bundle:list command is not able to be executed from client script

    [ https://issues.apache.org/jira/browse/KARAF-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14609789#comment-14609789 ] 

Jean-Baptiste Onofré commented on KARAF-3819:
---------------------------------------------

Good catch: I reproduce it as well.

> bundle:list command is not able to be executed from client script
> -----------------------------------------------------------------
>
>                 Key: KARAF-3819
>                 URL: https://issues.apache.org/jira/browse/KARAF-3819
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.0.0
>         Environment: Win7
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.1
>
>
> 1) start karaf 4.0.0 using bin/karaf.bat
> 2) start cmd: client.bat -a 8101 -h localhost -u karaf "bundle:list"
> {code}
> D:\download\apache-karaf-4.0.0\bin>client.bat -a 8101 -h localhost -u karaf "bundle:list"
> Logging in as karaf
> 371 [sshd-SshClient[ba41381]-nio2-thread-8] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server
> at [localhost/127.0.0.1:8101, RSA, e6:23:a2:8a:35:45:86:3a:86:87:bf:2c:e9:66:1c:25] presented unverified {} key: {}
> Error executing command: Unable to creation command action org.apache.karaf.bundle.command.List
> {code}
> also got ERROR in karaf.log
> {code}
> 2015-07-01 16:37:22,105 | ERROR | Thread-22        | ShellUtil                        | 43 - org.apache.karaf.shell.core - 4.0.0 | Exception caught while executing command
> java.lang.RuntimeException: Unable to creation command action org.apache.karaf.bundle.command.List
> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.createNewAction(ActionCommand.java:95)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:80)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[43:org.apache.karaf.shell.core:4.0.0]
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)
> 	at org.apache.karaf.shell.impl.console.HeadlessSessionImpl.execute(HeadlessSessionImpl.java:90)
> 	at org.apache.karaf.shell.ssh.ShellCommand$1.run(ShellCommand.java:116)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_51]
> 	at org.apache.karaf.util.jaas.JaasHelper.doAs(JaasHelper.java:103)[44:org.apache.karaf.shell.ssh:4.0.0]
> 	at org.apache.karaf.shell.ssh.ShellCommand.run(ShellCommand.java:112)[44:org.apache.karaf.shell.ssh:4.0.0]
> 	at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
> Caused by: java.lang.IllegalStateException: No service matching org.apache.karaf.shell.api.console.Terminal
> 	at org.apache.karaf.shell.impl.action.command.ManagerImpl.instantiate(ManagerImpl.java:91)
> 	at org.apache.karaf.shell.impl.action.command.ActionCommand.createNewAction(ActionCommand.java:93)[43:org.apache.karaf.shell.core:4.0.0]
> 	... 15 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)