felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent G. (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-4469) shell command "scr help" does not work without parameter
Date Wed, 26 Mar 2014 18:25:14 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vincent G. updated FELIX-4469:
------------------------------

    Description: 
Using shell command line with fix of FELIX-4447,

"scr help" returns :
java.lang.NullPointerException
        at org.apache.felix.scr.impl.ScrShellCommand.help(ScrShellCommand.java:116)
        at org.apache.felix.scr.impl.ScrShellCommand.execute(ScrShellCommand.java:75)
        at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:249)
        at org.apache.felix.shell.remote.Shell.startFelixShell(Shell.java:162)
        at org.apache.felix.shell.remote.Shell.run(Shell.java:86)
        at java.lang.Thread.run(Thread.java:722)

The code of "void help()" is not expecting "command" to be null.

Intead of :
         if (command.equals(LIST_CMD))
you should write :
        if (LIST_CMD.equals(command))


Workaround : type anything after "scr help" (example "scr help zzz").


  was:
Using shell command line with fix of FELIX-4447,

"scr help" returns :
java.lang.NullPointerException
        at org.apache.felix.scr.impl.ScrShellCommand.help(ScrShellCommand.java:116)
        at org.apache.felix.scr.impl.ScrShellCommand.execute(ScrShellCommand.java:75)
        at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:249)
        at org.apache.felix.shell.remote.Shell.startFelixShell(Shell.java:162)
        at org.apache.felix.shell.remote.Shell.run(Shell.java:86)
        at java.lang.Thread.run(Thread.java:722)

The code of "void help()" is not expecting "comand" to be null.

Intead of :
         if (command.equals(LIST_CMD))
you should write :
        if (LIST_CMD.equals(command))


Workaround : type anything after "scr help" (example "scr help zzz").



> shell command "scr help" does not work without parameter
> --------------------------------------------------------
>
>                 Key: FELIX-4469
>                 URL: https://issues.apache.org/jira/browse/FELIX-4469
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.8.2
>            Reporter: Vincent G.
>
> Using shell command line with fix of FELIX-4447,
> "scr help" returns :
> java.lang.NullPointerException
>         at org.apache.felix.scr.impl.ScrShellCommand.help(ScrShellCommand.java:116)
>         at org.apache.felix.scr.impl.ScrShellCommand.execute(ScrShellCommand.java:75)
>         at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:249)
>         at org.apache.felix.shell.remote.Shell.startFelixShell(Shell.java:162)
>         at org.apache.felix.shell.remote.Shell.run(Shell.java:86)
>         at java.lang.Thread.run(Thread.java:722)
> The code of "void help()" is not expecting "command" to be null.
> Intead of :
>          if (command.equals(LIST_CMD))
> you should write :
>         if (LIST_CMD.equals(command))
> Workaround : type anything after "scr help" (example "scr help zzz").



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message