[ 
https://issues.apache.org/jira/browse/FELIX-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739485#action_12739485
 ] 

Guillaume Nodet commented on FELIX-1454:
----------------------------------------

This happen when the @Command annotation is missing on the action object.

> install --help throws exception
> -------------------------------
>
>                 Key: FELIX-1454
>                 URL: https://issues.apache.org/jira/browse/FELIX-1454
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.0.0
>         Environment: Equinox / Windows XP / JRE 1.6.0_13
>            Reporter: David Bosschaert
>
> When I type install --help I get an exception instead of help:
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> ka...@root> install --help
> pipe: java.lang.NullPointerException
> java.lang.NullPointerException
>         at 
> org.apache.felix.karaf.gshell.console.commands.BlueprintCommand$BlueprintActionPreparator.printUsage(BlueprintCommand.java:89)
>         at 
> org.apache.felix.gogo.commands.basic.DefaultActionPreparator.prepare(DefaultActionPreparator.java:116)
>         at 
> org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
>         at 
> org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)
>         at 
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:208)
>         at 
> org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:147)
>         at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
>         at 
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:78)
>         at 
> org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
>         at 
> org.apache.felix.karaf.gshell.console.jline.Console.run(Console.java:109)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to