karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-5051) Command "shell wrapper:install" fails
Date Wed, 02 Aug 2017 05:20:00 GMT

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

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

It now works on 4.2.0-SNAPSHOT, but the wrapped shell console throws the following exception:

{code}
Exception in thread "main" java.lang.NullPointerException
                                                                                         
                                                                                         
                                                                                         
   at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.close(ConsoleSessionImpl.java:294)
                                                                                         
                                                                                         
                                                                                         
   at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:159)
                                                                                         
                                                                                         
                                                                                         
   at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:131)
                                                                                         
                                                                                         
                                                                                         
   at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:74)
                                                                                         
                                                                                         
                                                                                         
  at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:56)
{code}

I gonna fix that.

> Command "shell wrapper:install" fails
> -------------------------------------
>
>                 Key: KARAF-5051
>                 URL: https://issues.apache.org/jira/browse/KARAF-5051
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.1
>            Reporter: Jens Offenbach
>            Assignee: Jean-Baptiste Onofré
>              Labels: jline, karaf-shell
>             Fix For: 4.2.0, 4.1.2
>
>
> I am currently using {{apache-karaf-4.1.1-20170320.164246-38.tar.gz}} on Ubuntu 16.04
LTS and the following command fails:
> {code}
> $ shell wrapper:install --start-type DEMAND_START
> [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
> {code}
> May someone please have a look.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message