You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Frédéric CURVAT (JIRA)" <ji...@apache.org> on 2017/04/24 16:47:04 UTC

[jira] [Commented] (KARAF-5105) Issue with bin/shell command in karaf 4.1.1

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

Frédéric CURVAT commented on KARAF-5105:
----------------------------------------

Hi,

One more thing, command line should not return 0 if command fails, and in this particular case 0 is returned.

Regards,

> Issue with bin/shell command in karaf 4.1.1
> -------------------------------------------
>
>                 Key: KARAF-5105
>                 URL: https://issues.apache.org/jira/browse/KARAF-5105
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-management
>    Affects Versions: 4.1.1
>         Environment: linux
>            Reporter: Frédéric CURVAT
>
> Hello,
> When i try to run this simple bin/shell command i get the exception :
> $ bin/shell 'wrapper:install --help'
> [org.apache.karaf.shell.impl.console.ConsoleSessionImpl] : completionMode property is not defined in etc/org.apache.karaf.shell.cfg file. Using default completion mode.
> [org.apache.karaf.shell.support.ShellUtil] : Command exception (Undefined option, ...)
> org.apache.karaf.shell.support.CommandException: Too many arguments specified
>     at org.apache.karaf.shell.impl.action.command.DefaultActionPreparator.prepare(DefaultActionPreparator.java:160)
>     at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)
>     at org.apache.karaf.shell.impl.console.CommandWrapper.execute(CommandWrapper.java:53)
>     at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560)
>     at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486)
>     at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375)
>     at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
>     at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
>     at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> Error executing command wrapper:install: too many arguments specified
> This is happening on 4.1.1, it did not happen on 4.0.7.
> Regards,



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)