Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Charles Moulliard
Thx. I just discover that with the HelpSystem class public class HelpSystem implements HelpProvider { private BundleContext context; On Fri, Nov 29, 2013 at 11:08 AM, Jean-Baptiste Onofré wrote: > In that case, HelpAction won't work: HelpAction is looking for > HelpProvider OSGi service ;)

Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Jean-Baptiste Onofré
In that case, HelpAction won't work: HelpAction is looking for HelpProvider OSGi service ;) That's why you got NPE. Regards JB On 11/29/2013 10:59 AM, Charles Moulliard wrote: I'm running the Karaf Shell Console without OSGI ;-) but just as a simple CLI (java -CP HylaMain) like we have done a

Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Charles Moulliard
I'm running the Karaf Shell Console without OSGI ;-) but just as a simple CLI (java -CP HylaMain) like we have done also for Scalate ( https://github.com/scalate/scalate/blob/scala_2.10/scalate-tool/src/main/scala/org/fusesource/scalate/tool/ScalateMain.scala ) On Fri, Nov 29, 2013 at 10:48 AM, J

Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Jean-Baptiste Onofré
Instead of extending HelpAction (HelpAction requires additional attributes/methods to override), I would try to extends org.apache.karaf.shell.console.OsgiCommandSupport and define the blueprint: @Command(scope = "hyla", name = "help", description = "Display this help") public class MyHelp exte

Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Charles Moulliard
Yep. If required, I can provide a small project. @Command(scope = "hyla", name = "help", description = "Displays this help or help about a command") public class Help extends HelpAction { } On Fri, Nov 29, 2013 at 10:38 AM, Jean-Baptiste Onofré wrote: > Hi Charles, > > do you have description

Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Jean-Baptiste Onofré
Hi Charles, do you have description attribute on the @Command annotation ? Regards JB On 11/29/2013 10:32 AM, Charles Moulliard wrote: 2.3.3 On Fri, Nov 29, 2013 at 10:31 AM, Jean-Baptiste Onofré wrote: Hi Charles, what's the Karaf version (as it changed between 2.x and 3.x) ? Regards JB

Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Charles Moulliard
2.3.3 On Fri, Nov 29, 2013 at 10:31 AM, Jean-Baptiste Onofré wrote: > Hi Charles, > > what's the Karaf version (as it changed between 2.x and 3.x) ? > > Regards > JB > > > On 11/29/2013 10:18 AM, Charles Moulliard wrote: > >> Hi, >> >> For a documentation project, I'm currently creating a Java C

Re: NPE with command Help & Karaf Shell Console

2013-11-29 Thread Jean-Baptiste Onofré
Hi Charles, what's the Karaf version (as it changed between 2.x and 3.x) ? Regards JB On 11/29/2013 10:18 AM, Charles Moulliard wrote: Hi, For a documentation project, I'm currently creating a Java Command Line Tool client using our excellent Apache Karaf Shell Console. Nevertheless, when I t

NPE with command Help & Karaf Shell Console

2013-11-29 Thread Charles Moulliard
Hi, For a documentation project, I'm currently creating a Java Command Line Tool client using our excellent Apache Karaf Shell Console. Nevertheless, when I try to get help from a command, Gogo & Felix returns a NPE HylaMain java.io.BufferedInputStream@9506dc4 hyla>echo blabla echo blabla blabla